Skip to content

Commit a54b313

Browse files
committed
Added some conflicts to prevent replacement failures
1 parent a2b87b8 commit a54b313

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/cli.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,23 @@ pub fn get_app() -> App<'static, 'static> {
5252
Arg::with_name("endpoint")
5353
.long("endpoint")
5454
.takes_value(true)
55-
.help("Sets a custom endpoint to POST to, useful if you want a private instance and know the api matches one gitpub supports."),
55+
.help("Sets a custom endpoint to POST to, useful if you want a private instance and know the api matches one gitpub supports.")
56+
.conflicts_with("set_remote"),
5657
)
5758
.arg(
5859
Arg::with_name("set_remote")
5960
.long("set_remote")
60-
.help("Sets the remote of the local dir after successful creation.")
61+
.help("Sets the remote of the local dir after successful creation."),
6162
).arg(
6263
Arg::with_name("remote_name")
6364
.long("remote_name")
6465
.help("Designates a custom name for setting remote. Defaults to origin.")
6566
.default_value("origin")
66-
.hide_default_value(true)
67+
.hide_default_value(true),
6768
).arg(
6869
Arg::with_name("ssh_remote_format")
6970
.long("ssh_remote_format")
7071
.help("Attempts to convert the git remote url into ssh format. If it fails (the provider doesn't support ssh format), the remote isn't set.")
72+
.conflicts_with("endpoint"),
7173
)
7274
}

0 commit comments

Comments
 (0)