Drop unnecessary .index(1)

This commit is contained in:
Richard Feldman 2022-05-08 21:36:51 -04:00
parent a29686a341
commit 437f7dcf8b
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798

View file

@ -204,7 +204,6 @@ pub fn build_app<'a>() -> Command<'a> {
Command::new(CMD_DOCS) Command::new(CMD_DOCS)
.about("Generate documentation for Roc modules (Work In Progress)") .about("Generate documentation for Roc modules (Work In Progress)")
.arg(Arg::new(DIRECTORY_OR_FILES) .arg(Arg::new(DIRECTORY_OR_FILES)
.index(1)
.multiple_values(true) .multiple_values(true)
.required(false) .required(false)
.help("The directory or files to build documentation for") .help("The directory or files to build documentation for")
@ -230,7 +229,6 @@ pub fn build_app<'a>() -> Command<'a> {
.about("Launch the Roc editor (Work In Progress)") .about("Launch the Roc editor (Work In Progress)")
.arg( .arg(
Arg::new(DIRECTORY_OR_FILES) Arg::new(DIRECTORY_OR_FILES)
.index(1)
.multiple_values(true) .multiple_values(true)
.required(false) .required(false)
.help("(optional) The directory or files to open on launch."), .help("(optional) The directory or files to open on launch."),