diff options
author | Bas van Kervel <basvankervel@ziggo.nl> | 2015-04-08 21:43:55 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@ziggo.nl> | 2015-04-08 21:43:55 +0800 |
commit | 5304f43067c24e24eb8b8550c0db67fdbcc94718 (patch) | |
tree | f5f692078c8ae4c47ec56b47409e776751044b5d /cmd/utils/flags.go | |
parent | 50aa1f178c71a4ff6c59888fcb9e78ff8a0abacd (diff) | |
download | go-tangerine-5304f43067c24e24eb8b8550c0db67fdbcc94718.tar.gz go-tangerine-5304f43067c24e24eb8b8550c0db67fdbcc94718.tar.zst go-tangerine-5304f43067c24e24eb8b8550c0db67fdbcc94718.zip |
Add path expansion support for command line arguments, closes 567
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r-- | cmd/utils/flags.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 51844a68e..461d34ebc 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -68,10 +68,10 @@ func NewApp(version, usage string) *cli.App { var ( // General settings - DataDirFlag = cli.StringFlag{ - Name: "datadir", + DataDirFlag = DirectoryFlag{ + Name: "datadir", Usage: "Data directory to be used", - Value: common.DefaultDataDir(), + Value: DirectoryString{common.DefaultDataDir()}, } ProtocolVersionFlag = cli.IntFlag{ Name: "protocolversion", |