argpar-utils: tweak unknown option error message
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 24 Aug 2021 01:42:42 +0000 (21:42 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Dec 2021 00:13:39 +0000 (19:13 -0500)
commitb1a5fb96e7a9385fe421be9d4ab21a75ea11032f
tree4fd72a542b549c382441fd96fa6820ae05a261b5
parentd50d200af8d01f4b58a14e384cabd46b1afb4817
argpar-utils: tweak unknown option error message

Add the "While parsing argument #X" context, that is used when other
errors are encountered.  Before:

    Error: Unknown option `--hello`

After:

    Error: While parsing argument #1 (`--hello`): Unknown option `--hello`

Change-Id: Ifd84a1e8b1fe0456e09ff154cc515eaa2850a7e1
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/argpar-utils/argpar-utils.c
tests/regression/tools/trigger/test_add_trigger_cli
This page took 0.033751 seconds and 4 git commands to generate.