cmd/swarm: improve uploader output and add defaultpath option

This commit is contained in:
zelig
2016-12-13 12:48:30 +01:00
parent 080699f7df
commit 485748c416
2 changed files with 70 additions and 24 deletions

View File

@ -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 {