diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2022-08-26 12:17:45 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2022-08-26 12:17:50 +0200 |
commit | e6b6a09f90f53a5cea3a712b2b84af57f4514a02 (patch) | |
tree | 676a80dce731b9df0f585f6a1d12363c3e9ab5c4 /tools/tools.h | |
parent | 800436d2affd4142b9d4b405112c4c30f1d31b5b (diff) | |
download | lvm2-e6b6a09f90f53a5cea3a712b2b84af57f4514a02.tar.gz |
args: add ARG_NONINTERACTIVE for cmds not supported in lvm shell
Certain args can't be used in lvm shell ("interactive mode") because
they are not supported there. Add ARG_NONINTERACTIVE flag to mark
such args and error out if we're in interactive mode and at the same
time we detect use of such argument.
Currently, this is the case for --reportformat arg - we don't support
changing the format per command in lvm shell. The whole shell is running
under a reportformat chosen at shell's start.
Diffstat (limited to 'tools/tools.h')
-rw-r--r-- | tools/tools.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/tools.h b/tools/tools.h index cd89e1692..2636c22da 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -96,6 +96,7 @@ enum { #define ARG_COUNTABLE 0x00000001 /* E.g. -vvvv */ #define ARG_GROUPABLE 0x00000002 /* E.g. --addtag */ +#define ARG_NONINTERACTIVE 0x00000004 /* only for use in noninteractive mode */ struct arg_values { unsigned count; |