aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/flags.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-04-08 21:43:55 +0800
committerBas van Kervel <basvankervel@ziggo.nl>2015-04-08 21:43:55 +0800
commit5304f43067c24e24eb8b8550c0db67fdbcc94718 (patch)
treef5f692078c8ae4c47ec56b47409e776751044b5d /cmd/utils/flags.go
parent50aa1f178c71a4ff6c59888fcb9e78ff8a0abacd (diff)
downloaddexon-5304f43067c24e24eb8b8550c0db67fdbcc94718.tar
dexon-5304f43067c24e24eb8b8550c0db67fdbcc94718.tar.gz
dexon-5304f43067c24e24eb8b8550c0db67fdbcc94718.tar.bz2
dexon-5304f43067c24e24eb8b8550c0db67fdbcc94718.tar.lz
dexon-5304f43067c24e24eb8b8550c0db67fdbcc94718.tar.xz
dexon-5304f43067c24e24eb8b8550c0db67fdbcc94718.tar.zst
dexon-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.go6
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",