Skip to content

Commit c057d04

Browse files
committed
make remote-test-server cli parsing more consistent
1 parent 4d44e09 commit c057d04

File tree

1 file changed

+4
-8
lines changed
  • src/tools/remote-test-server/src

1 file changed

+4
-8
lines changed

Diff for: src/tools/remote-test-server/src/main.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ static TEST: AtomicUsize = AtomicUsize::new(0);
4141

4242
#[derive(Copy, Clone)]
4343
struct Config {
44-
pub remote: bool,
45-
pub verbose: bool,
44+
remote: bool,
45+
verbose: bool,
4646
}
4747

4848
impl Config {
@@ -56,12 +56,8 @@ impl Config {
5656
let args = env::args().skip(1);
5757
for argument in args {
5858
match &argument[..] {
59-
"remote" => {
60-
config.remote = true;
61-
}
62-
"verbose" | "-v" => {
63-
config.verbose = true;
64-
}
59+
"--remote" => config.remote = true,
60+
"--verbose" | "-v" => config.verbose = true,
6561
arg => panic!("unknown argument: {}", arg),
6662
}
6763
}

0 commit comments

Comments
 (0)