Skip to content

Commit

Permalink
feat: Allow leading hyphen for arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKavik committed Mar 29, 2021
1 parent d2ba928 commit e0ffd5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::recursion_level;
use crate::runner;
use crate::types::{CliArgs, GlobalConfig};
use crate::version;
use clap::{App, Arg, ArgMatches, SubCommand};
use clap::{App, AppSettings, Arg, ArgMatches, SubCommand};

static VERSION: &str = env!("CARGO_PKG_VERSION");
static AUTHOR: &str = env!("CARGO_PKG_AUTHORS");
Expand Down Expand Up @@ -283,6 +283,7 @@ fn create_cli<'a, 'b>(
.version(VERSION)
.author(AUTHOR)
.about(DESCRIPTION)
.setting(AppSettings::AllowLeadingHyphen)
.arg(
Arg::with_name("makefile")
.long("--makefile")
Expand Down

0 comments on commit e0ffd5f

Please sign in to comment.