We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d44e09 commit c057d04Copy full SHA for c057d04
src/tools/remote-test-server/src/main.rs
@@ -41,8 +41,8 @@ static TEST: AtomicUsize = AtomicUsize::new(0);
41
42
#[derive(Copy, Clone)]
43
struct Config {
44
- pub remote: bool,
45
- pub verbose: bool,
+ remote: bool,
+ verbose: bool,
46
}
47
48
impl Config {
@@ -56,12 +56,8 @@ impl Config {
56
let args = env::args().skip(1);
57
for argument in args {
58
match &argument[..] {
59
- "remote" => {
60
- config.remote = true;
61
- }
62
- "verbose" | "-v" => {
63
- config.verbose = true;
64
+ "--remote" => config.remote = true,
+ "--verbose" | "-v" => config.verbose = true,
65
arg => panic!("unknown argument: {}", arg),
66
67
0 commit comments