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
1ee6c7e5
Commit
1ee6c7e5
authored
10 years ago
by
Matt Bell
Committed by
Juan Batiz-Benet
10 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands/cli: Fixed arg parse bug
parent
1cb94a12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
commands/cli/parse.go
commands/cli/parse.go
+2
-2
No files found.
commands/cli/parse.go
View file @
1ee6c7e5
...
...
@@ -145,6 +145,7 @@ func parseArgs(stringArgs []string, cmd *cmds.Command) ([]interface{}, error) {
if
err
!=
nil
{
return
nil
,
err
}
j
++
}
}
else
{
var
err
error
...
...
@@ -152,9 +153,8 @@ func parseArgs(stringArgs []string, cmd *cmds.Command) ([]interface{}, error) {
if
err
!=
nil
{
return
nil
,
err
}
j
++
}
j
++
}
if
len
(
stringArgs
)
-
j
>
0
{
...
...
This diff is collapsed.
Click to expand it.
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