Commit ae33905c authored by Matt Bell's avatar Matt Bell

commands: Added global -r/--recursive flag

parent f22ac196
...@@ -136,12 +136,14 @@ func (ov OptionValue) String() (value string, found bool, err error) { ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment