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
9370740d
Commit
9370740d
authored
Nov 13, 2014
by
Matt Bell
Committed by
Juan Batiz-Benet
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands/cli: Fixed bug when parsing args for a command that doesn't have any argument definitions
parent
1abe9761
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
commands/cli/parse.go
commands/cli/parse.go
+1
-1
No files found.
commands/cli/parse.go
View file @
9370740d
...
...
@@ -154,7 +154,7 @@ func parseArgs(stringArgs []string, stdin *os.File, arguments []cmds.Argument) (
var
argDef
cmds
.
Argument
if
argDefIndex
<
len
(
arguments
)
{
argDef
=
arguments
[
argDefIndex
]
}
else
{
}
else
if
len
(
arguments
)
>
0
{
argDef
=
arguments
[
len
(
arguments
)
-
1
]
}
...
...
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