summaryrefslogtreecommitdiff
path: root/lib/commands/toolcontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/commands/toolcontext.h')
-rw-r--r--lib/commands/toolcontext.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/commands/toolcontext.h b/lib/commands/toolcontext.h
index c6d938d8b..35fd2942b 100644
--- a/lib/commands/toolcontext.h
+++ b/lib/commands/toolcontext.h
@@ -88,12 +88,20 @@ struct cmd_context {
* Command line and arguments.
*/
const char *cmd_line;
+ const char *name; /* needed before cmd->command is set */
struct command *command;
char **argv;
- struct arg_values *arg_values;
+ struct arg_values *opt_arg_values;
struct dm_list arg_value_groups;
/*
+ * Position args remaining after command name
+ * and --options are removed from original argc/argv.
+ */
+ int position_argc;
+ char **position_argv;
+
+ /*
* Format handlers.
*/
const struct format_type *fmt; /* current format to use by default */