mirror of
https://github.com/containers/podman.git
synced 2025-06-22 09:58:10 +08:00
Merge pull request #3096 from edsantiago/varlink_usage
varlink: fix usage message, URI is now optional
This commit is contained in:
@ -29,7 +29,7 @@ var (
|
|||||||
Tools speaking varlink protocol can remotely manage pods, containers and images.
|
Tools speaking varlink protocol can remotely manage pods, containers and images.
|
||||||
`
|
`
|
||||||
_varlinkCommand = &cobra.Command{
|
_varlinkCommand = &cobra.Command{
|
||||||
Use: "varlink [flags] URI",
|
Use: "varlink [flags] [URI]",
|
||||||
Short: "Run varlink interface",
|
Short: "Run varlink interface",
|
||||||
Long: varlinkDescription,
|
Long: varlinkDescription,
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
@ -68,7 +68,7 @@ func varlinkCmd(c *cliconfig.VarlinkValues) error {
|
|||||||
args := c.InputArgs
|
args := c.InputArgs
|
||||||
|
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
return errors.Errorf("too many arguments. you may optionally provide 1")
|
return errors.Errorf("too many arguments. You may optionally provide 1")
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(args) > 0 {
|
if len(args) > 0 {
|
||||||
|
Reference in New Issue
Block a user