Skip to content

Commit

Permalink
Allow negative numbers as arguments
Browse files Browse the repository at this point in the history
Previously a negative number would be interpreted as a flag.

TeXitoi/structopt#129
  • Loading branch information
walfie committed Nov 24, 2021
1 parent 8c713d6 commit 92e02c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::time::Duration;
use structopt::StructOpt;

#[derive(StructOpt, Debug, Clone)]
#[structopt(global_setting = structopt::clap::AppSettings::AllowNegativeNumbers)]
pub struct Args {
/// Overwrite path to config file.
#[structopt(env = "VTS_CONFIG", long)]
Expand Down

0 comments on commit 92e02c3

Please sign in to comment.