1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

commands: Added global -r/--recursive flag

This commit is contained in:
Matt Bell
2014-11-16 19:13:11 -08:00
parent f22ac196bb
commit ae33905ccd

View File

@ -136,12 +136,14 @@ func (ov OptionValue) String() (value string, found bool, err error) {
const ( const (
EncShort = "enc" EncShort = "enc"
EncLong = "encoding" EncLong = "encoding"
RecShort = "r"
RecLong = "recursive"
) )
// options that are used by this package // options that are used by this package
var globalOptions = []Option{ var globalOptions = []Option{
Option{[]string{EncShort, EncLong}, String, StringOption(EncShort, EncLong, "The encoding type the output should be encoded with (json, xml, or text)"),
"The encoding type the output should be encoded with (json, xml, or text)"}, BoolOption(RecShort, RecLong, "Add directory paths recursively"),
} }
// the above array of Options, wrapped in a Command // the above array of Options, wrapped in a Command