aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/swarm/main.go')
-rw-r--r--cmd/swarm/main.go5
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 {