Skip to content

Commit 77763e1

Browse files
golem131kbknapp
authored andcommitted
Update bitflags 0.8.0 -> 0.9
1 parent 49f9dc1 commit 77763e1

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A simple to use, efficient, and full featured Command Line Argument Parser
1616
"""
1717

1818
[dependencies]
19-
bitflags = "0.8.0"
19+
bitflags = "0.9"
2020
vec_map = "0.8"
2121
unicode-width = "0.1.4"
2222
unicode-segmentation = "~1.1.0" # 1.2.0 requires Rust 1.13.0

src/app/settings.rs

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,47 @@ use std::str::FromStr;
44
use std::ops::BitOr;
55

66
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;
4848
}
4949
}
5050

src/args/settings.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ use std::ascii::AsciiExt;
33
use std::str::FromStr;
44

55
bitflags! {
6-
flags Flags: u16 {
7-
const REQUIRED = 1 << 0,
8-
const MULTIPLE = 1 << 1,
9-
const EMPTY_VALS = 1 << 2,
10-
const GLOBAL = 1 << 3,
11-
const HIDDEN = 1 << 4,
12-
const TAKES_VAL = 1 << 5,
13-
const USE_DELIM = 1 << 6,
14-
const NEXT_LINE_HELP = 1 << 7,
15-
const R_UNLESS_ALL = 1 << 8,
16-
const REQ_DELIM = 1 << 9,
17-
const DELIM_NOT_SET = 1 << 10,
18-
const HIDE_POS_VALS = 1 << 11,
19-
const ALLOW_TAC_VALS = 1 << 12,
20-
const REQUIRE_EQUALS = 1 << 13,
21-
const LAST = 1 << 14,
22-
const HIDE_DEFAULT_VAL = 1 << 15,
6+
struct Flags: u16 {
7+
const REQUIRED = 1 << 0;
8+
const MULTIPLE = 1 << 1;
9+
const EMPTY_VALS = 1 << 2;
10+
const GLOBAL = 1 << 3;
11+
const HIDDEN = 1 << 4;
12+
const TAKES_VAL = 1 << 5;
13+
const USE_DELIM = 1 << 6;
14+
const NEXT_LINE_HELP = 1 << 7;
15+
const R_UNLESS_ALL = 1 << 8;
16+
const REQ_DELIM = 1 << 9;
17+
const DELIM_NOT_SET = 1 << 10;
18+
const HIDE_POS_VALS = 1 << 11;
19+
const ALLOW_TAC_VALS = 1 << 12;
20+
const REQUIRE_EQUALS = 1 << 13;
21+
const LAST = 1 << 14;
22+
const HIDE_DEFAULT_VAL = 1 << 15;
2323
}
2424
}
2525

0 commit comments

Comments
 (0)