Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
ae33905c
Commit
ae33905c
authored
Nov 16, 2014
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: Added global -r/--recursive flag
parent
f22ac196
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
commands/option.go
commands/option.go
+4
-2
No files found.
commands/option.go
View file @
ae33905c
...
...
@@ -136,12 +136,14 @@ func (ov OptionValue) String() (value string, found bool, err error) {
const
(
EncShort
=
"enc"
EncLong
=
"encoding"
RecShort
=
"r"
RecLong
=
"recursive"
)
// options that are used by this package
var
globalOptions
=
[]
Option
{
Option
{[]
string
{
EncShort
,
EncLong
}
,
String
,
"The encoding type the output should be encoded with (json, xml, or text)"
}
,
StringOption
(
EncShort
,
EncLong
,
"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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment