projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng: fix argument numbers in add-trigger error messages
[lttng-tools.git]
/
src
/
common
/
argpar-utils
/
argpar-utils.h
diff --git
a/src/common/argpar-utils/argpar-utils.h
b/src/common/argpar-utils/argpar-utils.h
index b9ae510c9e138e4e9db9afa099399db99a966151..89c5db3118d1d90f8c7efac24912bdd52885459b 100644
(file)
--- a/
src/common/argpar-utils/argpar-utils.h
+++ b/
src/common/argpar-utils/argpar-utils.h
@@
-39,14
+39,16
@@
enum parse_next_item_status
* On error, print a descriptive error message and return
* PARSE_NEXT_ITEM_STATUS_ERROR. If `context_fmt` is non-NULL, it is formatted
* using the following arguments and prepended to the error message.
* On error, print a descriptive error message and return
* PARSE_NEXT_ITEM_STATUS_ERROR. If `context_fmt` is non-NULL, it is formatted
* using the following arguments and prepended to the error message.
+ * Add `argc_offset` to the argument index mentioned in the error message.
*
* If `unknown_opt_is_error` is true, an unknown option is considered an error.
* Otherwise, it is considered as the end of the argument list.
*/
*
* If `unknown_opt_is_error` is true, an unknown option is considered an error.
* Otherwise, it is considered as the end of the argument list.
*/
-ATTR_FORMAT_PRINTF(
5, 6
)
+ATTR_FORMAT_PRINTF(
6, 7
)
enum parse_next_item_status parse_next_item(struct argpar_iter *iter,
enum parse_next_item_status parse_next_item(struct argpar_iter *iter,
- const struct argpar_item **item, const char **argv,
- bool unknown_opt_is_error, const char *context_fmt, ...);
+ const struct argpar_item **item, int argc_offset,
+ const char **argv, bool unknown_opt_is_error,
+ const char *context_fmt, ...);
#ifdef __cplusplus
}
#ifdef __cplusplus
}
This page took
0.02343 seconds
and
4
git commands to generate.