@@ -9,7 +9,7 @@ use std::path::PathBuf;
9
9
#[ derive( Debug , Parser ) ]
10
10
pub struct TargetOpt {
11
11
/// UEFI target to build for.
12
- #[ clap( long, default_value_t) ]
12
+ #[ clap( long, action , default_value_t) ]
13
13
pub target : UefiArch ,
14
14
}
15
15
@@ -24,7 +24,7 @@ impl Deref for TargetOpt {
24
24
#[ derive( Debug , Parser ) ]
25
25
pub struct ToolchainOpt {
26
26
/// Rust toolchain to use, e.g. "nightly-2022-02-24".
27
- #[ clap( long) ]
27
+ #[ clap( long, action ) ]
28
28
toolchain : Option < String > ,
29
29
}
30
30
@@ -40,14 +40,14 @@ impl ToolchainOpt {
40
40
#[ derive( Debug , Parser ) ]
41
41
pub struct BuildModeOpt {
42
42
/// Build in release mode.
43
- #[ clap( long) ]
43
+ #[ clap( long, action ) ]
44
44
pub release : bool ,
45
45
}
46
46
47
47
#[ derive( Debug , Parser ) ]
48
48
pub struct WarningOpt {
49
49
/// Treat warnings as errors.
50
- #[ clap( long) ]
50
+ #[ clap( long, action ) ]
51
51
pub warnings_as_errors : bool ,
52
52
}
53
53
@@ -102,7 +102,7 @@ pub struct DocOpt {
102
102
pub toolchain : ToolchainOpt ,
103
103
104
104
/// Open the docs in a browser.
105
- #[ clap( long) ]
105
+ #[ clap( long, action ) ]
106
106
pub open : bool ,
107
107
108
108
#[ clap( flatten) ]
@@ -129,19 +129,19 @@ pub struct QemuOpt {
129
129
pub build_mode : BuildModeOpt ,
130
130
131
131
/// Disable hardware accelerated virtualization support in QEMU.
132
- #[ clap( long) ]
132
+ #[ clap( long, action ) ]
133
133
pub disable_kvm : bool ,
134
134
135
135
/// Disable some tests that don't work in the CI.
136
- #[ clap( long) ]
136
+ #[ clap( long, action ) ]
137
137
pub ci : bool ,
138
138
139
139
/// Run QEMU without a GUI.
140
- #[ clap( long) ]
140
+ #[ clap( long, action ) ]
141
141
pub headless : bool ,
142
142
143
143
/// Directory in which to look for OVMF files.
144
- #[ clap( long) ]
144
+ #[ clap( long, action ) ]
145
145
pub ovmf_dir : Option < PathBuf > ,
146
146
}
147
147
0 commit comments