driver_tools/subcommands/enable/
args.rs1use argh::{ArgsInfo, FromArgs};
6
7#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
8#[argh(
9 subcommand,
10 name = "enable",
11 description = "Enables the given driver, reverting a disable action.",
12 note = "This is only meant to revert a DisableDriver action. After this call, the driver will be considered for matching to nodes again.",
13 example = "To enable a driver
14
15 $ driver enable 'fuchsia-pkg://fuchsia.com/example_driver#meta/example_driver.cm'",
16 error_code(1, "Failed to connect to the driver development service")
17)]
18pub struct EnableCommand {
19 #[argh(positional, description = "component URL of the driver to be enabled.")]
20 pub url: String,
21
22 #[argh(switch, short = 's', long = "select")]
24 pub select: bool,
25}