summaryrefslogtreecommitdiff
path: root/test/cli.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-12-31 15:02:08 +0000
committerMichael Drake <mdrake.unique@gmail.com>2023-01-01 18:02:44 +0000
commitd63e9e479c63f8f0a1579ea58205862047297f1a (patch)
treeef4005c1be13a49b9e4dea906ecd0f7a6172eb7e /test/cli.h
parentca8b9c3784f1f0f074cff1e5474d4a16b80885c6 (diff)
downloadlibnsgif-d63e9e479c63f8f0a1579ea58205862047297f1a.tar.gz
libnsgif-d63e9e479c63f8f0a1579ea58205862047297f1a.tar.bz2
cli: Allow arguments that disable positional argument requirement
Diffstat (limited to 'test/cli.h')
-rw-r--r--test/cli.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cli.h b/test/cli.h
index 91db086..ec14d1e 100644
--- a/test/cli.h
+++ b/test/cli.h
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: ISC
*
- * Copyright (C) 2021 Michael Drake <tlsa@netsurf-browser.org>
+ * Copyright (C) 2021-2022 Michael Drake <tlsa@netsurf-browser.org>
*/
/**
@@ -51,6 +51,7 @@ struct cli_table_entry {
const char *l; /**< Long argument name. */
const char s; /**< Short flag name. (Non-positional arguments.) */
bool p; /**< Whether the argument is a positional argument. */
+ bool no_pos; /**< When present, no positional arguments are required. */
enum cli_arg_type t; /**< Argument type. */
union {
bool *b; /**< Location to store \ref CLI_BOOL value. */