Skip to content

Commit 3056a01

Browse files
committed
Allow latter --web-bundle to override the former
This makes use of `Arg::overrides_with` since clap v2.29.3.
1 parent 006aace commit 3056a01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bin/tectonic/compile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct CompileOptions {
3737
bundle: Option<PathBuf>,
3838

3939
/// Use this URL to find resource files instead of the default
40-
#[structopt(takes_value(true), long, short, name = "url")]
40+
#[structopt(takes_value(true), long, short, name = "url", overrides_with = "url")]
4141
// TODO add URL validation
4242
web_bundle: Option<String>,
4343

src/bin/tectonic/v2cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ pub struct NewCommand {
678678
path: PathBuf,
679679

680680
/// Use this URL to find resource files instead of the default
681-
#[structopt(takes_value(true), long, short, name = "url")]
681+
#[structopt(takes_value(true), long, short, name = "url", overrides_with = "url")]
682682
// TODO add URL validation
683683
web_bundle: Option<String>,
684684
}
@@ -709,7 +709,7 @@ impl NewCommand {
709709
#[derive(Debug, Eq, PartialEq, StructOpt)]
710710
pub struct InitCommand {
711711
/// Use this URL to find resource files instead of the default
712-
#[structopt(takes_value(true), long, short, name = "url")]
712+
#[structopt(takes_value(true), long, short, name = "url", overrides_with = "url")]
713713
// TODO add URL validation
714714
web_bundle: Option<String>,
715715
}

0 commit comments

Comments
 (0)