Skip to main content

driver_tools/subcommands/show/
args.rs

1// Copyright 2026 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use argh::{ArgsInfo, FromArgs};
6
7#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
8#[argh(
9    subcommand,
10    name = "show",
11    description = "Show driver details",
12    example = "To show details for a driver:
13
14    $ driver show fuchsia-boot:///dovi#meta/dovi.cm",
15    error_code(1, "Failed to connect to the driver development service")
16)]
17pub struct ShowCommand {
18    #[argh(positional)]
19    /// driver URL or name. Partial matches allowed.
20    pub query: String,
21
22    /// if this exists, the user will be prompted for a component to select.
23    #[argh(switch, short = 's', long = "select")]
24    pub select: bool,
25}