mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 12:57:44 +08:00
Added Default to commands cmd
Part of #2484 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
This commit is contained in:
parent
a2bcec40ba
commit
7fee408b6b
@ -34,7 +34,7 @@ func CommandsCmd(root *cmds.Command) *cmds.Command {
|
||||
ShortDescription: `Lists all available commands (and subcommands) and exits.`,
|
||||
},
|
||||
Options: []cmds.Option{
|
||||
cmds.BoolOption(flagsOptionName, "f", "Show command flags"),
|
||||
cmds.BoolOption(flagsOptionName, "f", "Show command flags").Default(false),
|
||||
},
|
||||
Run: func(req cmds.Request, res cmds.Response) {
|
||||
showOptions, _, _ := req.Option(flagsOptionName).Bool()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user