Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
dc2b9fd4
Commit
dc2b9fd4
authored
Apr 09, 2015
by
Bas van Kervel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix as a result of PR 671
parent
6da5b2fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
customflags.go
cmd/utils/customflags.go
+3
-4
No files found.
cmd/utils/customflags.go
View file @
dc2b9fd4
...
@@ -18,11 +18,11 @@ type DirectoryString struct {
...
@@ -18,11 +18,11 @@ type DirectoryString struct {
Value
string
Value
string
}
}
func
(
self
DirectoryString
)
String
()
string
{
func
(
self
*
DirectoryString
)
String
()
string
{
return
self
.
Value
return
self
.
Value
}
}
func
(
self
DirectoryString
)
Set
(
value
string
)
error
{
func
(
self
*
DirectoryString
)
Set
(
value
string
)
error
{
self
.
Value
=
expandPath
(
value
)
self
.
Value
=
expandPath
(
value
)
return
nil
return
nil
}
}
...
@@ -72,9 +72,8 @@ func (self DirectoryFlag) Apply(set *flag.FlagSet) {
...
@@ -72,9 +72,8 @@ func (self DirectoryFlag) Apply(set *flag.FlagSet) {
}
}
eachName
(
self
.
Name
,
func
(
name
string
)
{
eachName
(
self
.
Name
,
func
(
name
string
)
{
set
.
Var
(
self
.
Value
,
self
.
Name
,
"a: "
+
self
.
Usage
)
set
.
Var
(
&
self
.
Value
,
self
.
Name
,
self
.
Usage
)
})
})
}
}
func
prefixFor
(
name
string
)
(
prefix
string
)
{
func
prefixFor
(
name
string
)
(
prefix
string
)
{
...
...
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