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-cmds
Commits
cd35310e
Commit
cd35310e
authored
Nov 25, 2015
by
rht
Committed by
Jeromy
Jan 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/\[0:/\[:/g
License: MIT Signed-off-by:
rht
<
rhtbot@gmail.com
>
parent
08b4e157
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cli/parse.go
cli/parse.go
+1
-1
command.go
command.go
+1
-1
No files found.
cli/parse.go
View file @
cd35310e
...
...
@@ -187,7 +187,7 @@ func parseOpts(args []string, root *cmds.Command) (
}
}
var
end
bool
end
,
err
=
parseFlag
(
arg
[
0
:
1
],
rest
,
mustUse
)
end
,
err
=
parseFlag
(
arg
[
:
1
],
rest
,
mustUse
)
if
err
!=
nil
{
return
}
...
...
command.go
View file @
cd35310e
...
...
@@ -156,7 +156,7 @@ func (c *Command) Resolve(pth []string) ([]*Command, error) {
cmd
=
cmd
.
Subcommand
(
name
)
if
cmd
==
nil
{
pathS
:=
path
.
Join
(
pth
[
0
:
i
])
pathS
:=
path
.
Join
(
pth
[
:
i
])
return
nil
,
fmt
.
Errorf
(
"Undefined command: '%s'"
,
pathS
)
}
...
...
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