cmd/uplink: improve usage for uplink subcommands
Positional args were missing from the usage strings. Change-Id: I8458739577ff8d2b1c0503303023569da3d32806
This commit is contained in:
parent
5a1838bc28
commit
746c07cb91
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
|
||||
func init() {
|
||||
addCmd(&cobra.Command{
|
||||
Use: "mb",
|
||||
Use: "mb sj://BUCKET",
|
||||
Short: "Create a new bucket",
|
||||
RunE: makeBucket,
|
||||
}, RootCmd)
|
||||
|
@ -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)
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
|
||||
func init() {
|
||||
addCmd(&cobra.Command{
|
||||
Use: "rb",
|
||||
Use: "rb sj://BUCKET",
|
||||
Short: "Remove an empty bucket",
|
||||
RunE: deleteBucket,
|
||||
}, RootCmd)
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user