Skip to content

Commit

Permalink
refactor: improve CLI argument configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaka91 committed Jun 22, 2023
1 parent 5fa713f commit e7ca3cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cli.rs
Expand Up @@ -17,7 +17,7 @@ use crate::styles::Theme;
#[command(about, author, version)]
pub struct Cli {
/// Disable any code highlighting.
#[arg(long)]
#[arg(long, conflicts_with = "theme")]
pub no_highlight: bool,
/// Show annotations for missing instantiations.
#[arg(long)]
Expand All @@ -26,12 +26,13 @@ pub struct Cli {
#[arg(long, default_value_t = Theme::OneHalf)]
pub theme: Theme,
/// Where to place the coverage color marker.
#[arg(long, default_value_t = CoverageStyle::Line)]
#[arg(long, default_value_t = CoverageStyle::Line, value_name = "STYLE")]
pub coverage_style: CoverageStyle,
/// Location of the project's Cargo.toml, in case the default detection isn't sufficient.
#[arg(long)]
#[arg(long, value_hint = ValueHint::FilePath, value_name = "PATH")]
pub manifest_path: Option<Utf8PathBuf>,
/// Input coverage file encoded as JSON, or STDIN if omitted.
#[arg(value_hint = ValueHint::FilePath)]
pub input: Option<Utf8PathBuf>,
#[command(subcommand)]
pub cmd: Option<Command>,
Expand Down

0 comments on commit e7ca3cb

Please sign in to comment.