Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xflags
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Go
Application
xflags
Commits
3671a8d8
Verified
Commit
3671a8d8
authored
2 years ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix copy only explicite values
#3
parent
bf75fade
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mapping.go
+1
-4
1 addition, 4 deletions
mapping.go
parse.go
+1
-1
1 addition, 1 deletion
parse.go
with
2 additions
and
5 deletions
mapping.go
+
1
−
4
View file @
3671a8d8
...
...
@@ -55,12 +55,9 @@ func (s *Settings[C]) assignValues(c cmd[C]) {
if
c
.
proxyMapping
[
k
]
!=
""
{
p
=
c
.
proxyMapping
[
k
]
s
.
mapping
[
p
]
=
value
}
s
.
mapping
[
p
]
=
value
return
})
}
This diff is collapsed.
Click to expand it.
parse.go
+
1
−
1
View file @
3671a8d8
...
...
@@ -38,7 +38,7 @@ func (s *Settings[C]) Parse(args []string) *Settings[C] {
s
.
command
.
parse
(
r
)
if
s
.
mapping
!=
nil
&&
s
.
proxy
!=
nil
{
if
s
.
mapping
!=
nil
&&
len
(
s
.
mapping
)
>
0
&&
s
.
proxy
!=
nil
{
s
.
proxy
.
Copy
(
s
.
mapping
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment