-
Notifications
You must be signed in to change notification settings - Fork 467
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
[bug] CLI Help when some "options" are required is self-contradicting #1699
Comments
@shannonwells in order to prepare this as a good first issue, can you please add some clarification?
|
I believe these are actually going to be optional at some point right? I believe I remember @acruikshank saying that later the price and limit will be set to best guesses automatically. Should the fix here be to set defaults on the options that can later be removed when we have the best-guess behavior? |
I think that's a good idea. If there are defaults set they should also be documented. |
I think we get the documentation for free (at least if we are just documenting in the command help text). An example of this is the
|
by "documented" I meant "documented in the help output," not in a separate document. |
Description
In several places in the CLI help, we have text that puts
--someOption
in square brackets, but such an option is required. This is confusing, since the extended help has no indication that these things are required. Example is the miner create help text quoted below.If I run the miner create command as I have before (
go-filecoin miner create 10 100
), it fails, saying only that --price is required. But both gas price and gas limit are required arguments. In Unix help, square brackets around an argument mean it is optional, however these arguments are in square brackets in the help text. In the "USAGE" section and theminer --help
output,--price
and--limit
aren't shown at all (so the miner command help can't be used as a quick reference because it's incomplete). In the "OPTIONS" shown below,--price
and--limit
also aren't marked required.Expected Behavior
All help text should show all required arguments. The only arguments in square brackets should be optional ones. In the extended help (e.g. OPTIONS section), these arguments should say "required" in some way, and be the same way everywhere.
Current Behavior
Starting points
If there is a single default gas limit and gas price, then the default option text will need to be updated in main.go.
Also look in
commands/
for functions that callparseGasOptions
:The text was updated successfully, but these errors were encountered: