commands: Gave global options exported names
Matt Bell committed
Nov 19, 2014 at 00:01 UTC
277ba26120cfa370e7773aa71766350b076b9901
1 file changed
+5
-2
commands/option.go
+5
-2
@@ -141,9 +141,12 @@ const (
141
)
142
143
// options that are used by this package
144
+var OptionEncodingType = StringOption(EncShort, EncLong, "The encoding type the output should be encoded with (json, xml, or text)")
145
+var OptionRecursivePath = BoolOption(RecShort, RecLong, "Add directory paths recursively")
146
+
147
+// global options, added to every command
148
var globalOptions = []Option{
145
- StringOption(EncShort, EncLong, "The encoding type the output should be encoded with (json, xml, or text)"),
146
- BoolOption(RecShort, RecLong, "Add directory paths recursively"),
149
+ OptionEncodingType,
150
}
151
152
// the above array of Options, wrapped in a Command