Skip to content

cli: Added short flags#100

Merged
VoyTechnology merged 1 commit intodevelopfrom
feature/cli-short-commands
Oct 22, 2017
Merged

cli: Added short flags#100
VoyTechnology merged 1 commit intodevelopfrom
feature/cli-short-commands

Conversation

@VoyTechnology
Copy link
Copy Markdown
Member

@GoldenBadger While this is a convenience thing, I realize that having the short flags have multiple chars is not the best solution. As the Unix expert here, should I make them shorter to -m -b, -i, -o and -t (in place of -id in status, -t as in task), or is this acceptable?

Comment thread cli/src/parser.rs Outdated
.arg(
Arg::with_name("input")
.long("input")
.short("in")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short should always be 1 character.

Comment thread cli/src/parser.rs Outdated
.arg(
Arg::with_name("binary")
.long("binary")
.short("bin")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

Comment thread cli/src/parser.rs Outdated
.arg(
Arg::with_name("output")
.long("output")
.short("out")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

@VoyTechnology VoyTechnology force-pushed the feature/cli-short-commands branch 2 times, most recently from 8a11614 to ef00623 Compare October 21, 2017 23:49
Comment thread cli/src/parser.rs Outdated
.short("o")
.help("Output Directory, optional")
.takes_value(true)
.default_value(""),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On line 55 you explicitly mark it as not required, but not here. I like the explicitness.

@VoyTechnology VoyTechnology force-pushed the feature/cli-short-commands branch from 7989049 to 67cbaee Compare October 22, 2017 00:04
@VoyTechnology VoyTechnology merged commit 9d5c89f into develop Oct 22, 2017
@VoyTechnology VoyTechnology deleted the feature/cli-short-commands branch October 22, 2017 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants