driver_tools/subcommands/list_devices/
args.rs1use argh::{ArgsInfo, FromArgs};
6
7#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
8#[argh(
9 subcommand,
10 name = "list-devices",
11 description = "List devices",
12 example = "To list all devices:
13
14 $ driver list-devices -v",
15 error_code(1, "Failed to connect to the driver development service")
16)]
17pub struct ListDevicesCommand {
18 #[argh(positional)]
20 pub device: Option<String>,
21
22 #[argh(switch, short = 's', long = "select")]
24 pub select: bool,
25
26 #[argh(switch, short = 'v', long = "verbose")]
28 pub verbose: bool,
29
30 #[argh(switch, long = "exact")]
32 pub exact: bool,
33
34 #[argh(switch, long = "fail-on-missing")]
36 pub fail_on_missing: bool,
37
38 #[argh(switch, short = 'u', long = "unbound")]
40 pub unbound: bool,
41}