blob: 17e4989d31c56faf1f439e2febb837a76c9743cc [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {argh::FromArgs, ffx_core::ffx_command, ffx_lib_sub_command::Subcommand};
#[ffx_command()]
#[derive(FromArgs, Debug, PartialEq)]
/// Fuchsia's developer tool
pub struct Ffx {
#[argh(option, short = 'c')]
/// override default configuration
pub config: Option<String>,
#[argh(option, short = 'e')]
/// override default environment settings
pub env: Option<String>,
#[argh(option, short = 't')]
/// apply operations across single or multiple targets
pub target: Option<String>,
#[argh(switch, short = 'v', description = "direct all log output to the launching terminal")]
/// verbose output always prints to stdio, both frontend and daemon
pub verbose: bool,
#[argh(subcommand)]
pub subcommand: Option<Subcommand>,
}