diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-12-31 15:02:08 +0000 |
---|---|---|
committer | Michael Drake <mdrake.unique@gmail.com> | 2023-01-01 18:02:44 +0000 |
commit | d63e9e479c63f8f0a1579ea58205862047297f1a (patch) | |
tree | ef4005c1be13a49b9e4dea906ecd0f7a6172eb7e /test/cli.h | |
parent | ca8b9c3784f1f0f074cff1e5474d4a16b80885c6 (diff) | |
download | libnsgif-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. */ |