diff options
author | zelig <viktor.tron@gmail.com> | 2016-12-13 19:48:30 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2016-12-13 19:54:13 +0800 |
commit | 485748c4161f558bd1aa01c2e064c335208c9482 (patch) | |
tree | e9330348cd1e4d0787179f358f27e693317729b7 /cmd/swarm/main.go | |
parent | 080699f7df86f472a99d181c46605391dfd99967 (diff) | |
download | dexon-485748c4161f558bd1aa01c2e064c335208c9482.tar.gz dexon-485748c4161f558bd1aa01c2e064c335208c9482.tar.zst dexon-485748c4161f558bd1aa01c2e064c335208c9482.zip |
cmd/swarm: improve uploader output and add defaultpath option
Diffstat (limited to 'cmd/swarm/main.go')
-rw-r--r-- | cmd/swarm/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go index 144dcc80c..1c8da43ae 100644 --- a/cmd/swarm/main.go +++ b/cmd/swarm/main.go @@ -108,6 +108,10 @@ var ( Name: "manifest", Usage: "Automatic manifest upload", } + SwarmUploadDefaultPath = cli.StringFlag{ + Name: "defaultpath", + Usage: "path to file served for empty url path (none)", + } ) func init() { @@ -179,6 +183,7 @@ Prints the swarm hash of file or directory. SwarmApiFlag, SwarmRecursiveUploadFlag, SwarmWantManifestFlag, + SwarmUploadDefaultPath, } app.Flags = append(app.Flags, debug.Flags...) app.Before = func(ctx *cli.Context) error { |