Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(help): ArgsRequiredElseHelp should ignore defaults #3421

Merged
merged 1 commit into from Feb 8, 2022

Conversation

epage
Copy link
Member

@epage epage commented Feb 8, 2022

Fixes #1264

@epage epage merged commit edf9d05 into clap-rs:master Feb 8, 2022
@epage epage deleted the more branch February 8, 2022 20:23
samvrlewis added a commit to swift-nav/swift-toolbox that referenced this pull request Feb 16, 2022
This gets clap-rs/clap#3421 which enables the
help to show when no arguments are given and there are defaults.
samvrlewis added a commit to swift-nav/swift-toolbox that referenced this pull request Feb 16, 2022
* Improve error for empty remote path

* Fix up serial in usage & some help strings

* Add info to file errors

* Add error for reading non-existent file

* Improve usage and error messages

* PATH -> FILE_PATH for delete

* Fixed missed PATH -> FILE_PATH

* Make error on 0 byte file read more informative

This could either mean the file actually is 0 bytes, the file doesn't
exist, or the file isn't allowed to be accessed

* Update usage

Changed "Piksi" to "Swift device" and separated to the "cp to" and "cp from" examples

* Use master version of Clap

This gets clap-rs/clap#3421 which enables the
help to show when no arguments are given and there are defaults.

* Fix formatting of cargo.toml

* Upgrade to Clap 3.1.0

Co-authored-by: Jason Mobarak <jason@swiftnav.com>
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.

ArgRequiredElseHelp is ignored if there are *any* default values
1 participant