From 485748c4161f558bd1aa01c2e064c335208c9482 Mon Sep 17 00:00:00 2001 From: zelig Date: Tue, 13 Dec 2016 12:48:30 +0100 Subject: cmd/swarm: improve uploader output and add defaultpath option --- cmd/swarm/main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd/swarm/main.go') 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 { -- cgit