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>
Fri, 17 Dec 2021 05:31:09 +0000 (00:31 -0500)
commitffcdaa42181caaa717ff2d72cacfaaefaf0f321d
treedb8814a013dd663e245c81d48c22f69020957e01
parentea76a8bbde6896bddfa656627e8f12e0b9f55a5e
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.027496 seconds and 5 git commands to generate.