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
c9acccea
Commit
c9acccea
authored
Mar 26, 2020
by
deepakgarg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #183. Not modifying the mutating opts object per comments
parent
1b028fbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
request.go
request.go
+1
-1
No files found.
request.go
View file @
c9acccea
...
...
@@ -137,7 +137,7 @@ func checkAndConvertOptions(root *Command, opts OptMap, path []string) (OptMap,
}
for
_
,
name
:=
range
opt
.
Names
()
{
if
_
,
ok
:=
opts
[
name
];
name
!=
k
&&
ok
{
if
_
,
ok
:=
opt
ion
s
[
name
];
name
!=
k
&&
ok
{
return
options
,
fmt
.
Errorf
(
"Duplicate command options were provided (%q and %q)"
,
k
,
name
)
}
...
...
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