cmd/uplink: improve usage for uplink subcommands

Positional args were missing from the usage strings.

Change-Id: I8458739577ff8d2b1c0503303023569da3d32806
This commit is contained in:
Bryan White 2020-01-22 19:44:11 +01:00 committed by Michal Niewrzal
parent 5a1838bc28
commit 746c07cb91
8 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@ import (
func init() {
addCmd(&cobra.Command{
Use: "cat",
Use: "cat sj://BUCKET/KEY",
Short: "Copies a Storj object to standard out",
RunE: catMain,
}, RootCmd)

View File

@ -30,7 +30,7 @@ var (
func init() {
cpCmd := addCmd(&cobra.Command{
Use: "cp",
Use: "cp SOURCE DESTINATION",
Short: "Copies a local file or Storj object to another location locally or in Storj",
RunE: copyMain,
}, RootCmd)

View File

@ -23,7 +23,7 @@ var (
func init() {
lsCmd := addCmd(&cobra.Command{
Use: "ls",
Use: "ls [sj://BUCKET[/PREFIX]]",
Short: "List objects and prefixes or all buckets",
RunE: list,
}, RootCmd)

View File

@ -18,7 +18,7 @@ import (
func init() {
addCmd(&cobra.Command{
Use: "mb",
Use: "mb sj://BUCKET",
Short: "Create a new bucket",
RunE: makeBucket,
}, RootCmd)

View File

@ -14,7 +14,7 @@ import (
func init() {
addCmd(&cobra.Command{
Use: "put",
Use: "put sj://BUCKET/KEY",
Short: "Copies data from standard in to a Storj object",
RunE: putMain,
}, RootCmd)

View File

@ -15,7 +15,7 @@ import (
func init() {
addCmd(&cobra.Command{
Use: "rb",
Use: "rb sj://BUCKET",
Short: "Remove an empty bucket",
RunE: deleteBucket,
}, RootCmd)

View File

@ -20,7 +20,7 @@ var (
func init() {
rmCmd := addCmd(&cobra.Command{
Use: "rm",
Use: "rm sj://BUCKET/KEY",
Short: "Delete an object",
RunE: deleteObject,
}, RootCmd)

View File

@ -41,7 +41,7 @@ func init() {
// above, and addCmd adds a whole lot more than we want.
shareCmd := &cobra.Command{
Use: "share [allowed-path-prefix]...",
Use: "share [ALLOWED_PATH_PREFIX]...",
Short: "Shares restricted access to objects.",
RunE: shareMain,
}