@@ -4,47 +4,47 @@ use std::str::FromStr;
4
4
use std:: ops:: BitOr ;
5
5
6
6
bitflags ! {
7
- flags Flags : u64 {
8
- const SC_NEGATE_REQS = 1 << 0 ,
9
- const SC_REQUIRED = 1 << 1 ,
10
- const A_REQUIRED_ELSE_HELP = 1 << 2 ,
11
- const GLOBAL_VERSION = 1 << 3 ,
12
- const VERSIONLESS_SC = 1 << 4 ,
13
- const UNIFIED_HELP = 1 << 5 ,
14
- const WAIT_ON_ERROR = 1 << 6 ,
15
- const SC_REQUIRED_ELSE_HELP = 1 << 7 ,
16
- const NEEDS_LONG_HELP = 1 << 8 ,
17
- const NEEDS_LONG_VERSION = 1 << 9 ,
18
- const NEEDS_SC_HELP = 1 << 10 ,
19
- const DISABLE_VERSION = 1 << 11 ,
20
- const HIDDEN = 1 << 12 ,
21
- const TRAILING_VARARG = 1 << 13 ,
22
- const NO_BIN_NAME = 1 << 14 ,
23
- const ALLOW_UNK_SC = 1 << 15 ,
24
- const UTF8_STRICT = 1 << 16 ,
25
- const UTF8_NONE = 1 << 17 ,
26
- const LEADING_HYPHEN = 1 << 18 ,
27
- const NO_POS_VALUES = 1 << 19 ,
28
- const NEXT_LINE_HELP = 1 << 20 ,
29
- const DERIVE_DISP_ORDER = 1 << 21 ,
30
- const COLORED_HELP = 1 << 22 ,
31
- const COLOR_ALWAYS = 1 << 23 ,
32
- const COLOR_AUTO = 1 << 24 ,
33
- const COLOR_NEVER = 1 << 25 ,
34
- const DONT_DELIM_TRAIL = 1 << 26 ,
35
- const ALLOW_NEG_NUMS = 1 << 27 ,
36
- const LOW_INDEX_MUL_POS = 1 << 28 ,
37
- const DISABLE_HELP_SC = 1 << 29 ,
38
- const DONT_COLLAPSE_ARGS = 1 << 30 ,
39
- const ARGS_NEGATE_SCS = 1 << 31 ,
40
- const PROPAGATE_VALS_DOWN = 1 << 32 ,
41
- const ALLOW_MISSING_POS = 1 << 33 ,
42
- const TRAILING_VALUES = 1 << 34 ,
43
- const VALID_NEG_NUM_FOUND = 1 << 35 ,
44
- const PROPOGATED = 1 << 36 ,
45
- const VALID_ARG_FOUND = 1 << 37 ,
46
- const INFER_SUBCOMMANDS = 1 << 38 ,
47
- const CONTAINS_LAST = 1 << 39 ,
7
+ struct Flags : u64 {
8
+ const SC_NEGATE_REQS = 1 << 0 ;
9
+ const SC_REQUIRED = 1 << 1 ;
10
+ const A_REQUIRED_ELSE_HELP = 1 << 2 ;
11
+ const GLOBAL_VERSION = 1 << 3 ;
12
+ const VERSIONLESS_SC = 1 << 4 ;
13
+ const UNIFIED_HELP = 1 << 5 ;
14
+ const WAIT_ON_ERROR = 1 << 6 ;
15
+ const SC_REQUIRED_ELSE_HELP = 1 << 7 ;
16
+ const NEEDS_LONG_HELP = 1 << 8 ;
17
+ const NEEDS_LONG_VERSION = 1 << 9 ;
18
+ const NEEDS_SC_HELP = 1 << 10 ;
19
+ const DISABLE_VERSION = 1 << 11 ;
20
+ const HIDDEN = 1 << 12 ;
21
+ const TRAILING_VARARG = 1 << 13 ;
22
+ const NO_BIN_NAME = 1 << 14 ;
23
+ const ALLOW_UNK_SC = 1 << 15 ;
24
+ const UTF8_STRICT = 1 << 16 ;
25
+ const UTF8_NONE = 1 << 17 ;
26
+ const LEADING_HYPHEN = 1 << 18 ;
27
+ const NO_POS_VALUES = 1 << 19 ;
28
+ const NEXT_LINE_HELP = 1 << 20 ;
29
+ const DERIVE_DISP_ORDER = 1 << 21 ;
30
+ const COLORED_HELP = 1 << 22 ;
31
+ const COLOR_ALWAYS = 1 << 23 ;
32
+ const COLOR_AUTO = 1 << 24 ;
33
+ const COLOR_NEVER = 1 << 25 ;
34
+ const DONT_DELIM_TRAIL = 1 << 26 ;
35
+ const ALLOW_NEG_NUMS = 1 << 27 ;
36
+ const LOW_INDEX_MUL_POS = 1 << 28 ;
37
+ const DISABLE_HELP_SC = 1 << 29 ;
38
+ const DONT_COLLAPSE_ARGS = 1 << 30 ;
39
+ const ARGS_NEGATE_SCS = 1 << 31 ;
40
+ const PROPAGATE_VALS_DOWN = 1 << 32 ;
41
+ const ALLOW_MISSING_POS = 1 << 33 ;
42
+ const TRAILING_VALUES = 1 << 34 ;
43
+ const VALID_NEG_NUM_FOUND = 1 << 35 ;
44
+ const PROPOGATED = 1 << 36 ;
45
+ const VALID_ARG_FOUND = 1 << 37 ;
46
+ const INFER_SUBCOMMANDS = 1 << 38 ;
47
+ const CONTAINS_LAST = 1 << 39 ;
48
48
}
49
49
}
50
50
0 commit comments