From 555806735c045718186fa8cf417cd4242eb6bbad Mon Sep 17 00:00:00 2001 From: Daniel Canter Date: Mon, 22 Mar 2021 06:02:40 -0700 Subject: [PATCH] Update ArgsUsage for shimdiag commands to add flags None of the ArgsUsage's for any of the commands listed flags so add this. Signed-off-by: Daniel Canter --- cmd/shimdiag/exec.go | 2 +- cmd/shimdiag/list.go | 2 +- cmd/shimdiag/share.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/shimdiag/exec.go b/cmd/shimdiag/exec.go index 8b5ff90934..86eb0805ad 100644 --- a/cmd/shimdiag/exec.go +++ b/cmd/shimdiag/exec.go @@ -35,7 +35,7 @@ var execTty bool var execCommand = cli.Command{ Name: "exec", Usage: "Executes a command in a shim's hosting utility VM", - ArgsUsage: " [args...]", + ArgsUsage: "[flags] [args...]", Flags: []cli.Flag{ cli.BoolFlag{ Name: "tty,t", diff --git a/cmd/shimdiag/list.go b/cmd/shimdiag/list.go index a34e616c2e..ee90cce482 100644 --- a/cmd/shimdiag/list.go +++ b/cmd/shimdiag/list.go @@ -12,7 +12,7 @@ import ( var listCommand = cli.Command{ Name: "list", Usage: "Lists running shims", - ArgsUsage: " ", + ArgsUsage: "[flags]", Flags: []cli.Flag{ cli.BoolFlag{ Name: "pids", diff --git a/cmd/shimdiag/share.go b/cmd/shimdiag/share.go index 478a6a4a92..a9ac75e9fa 100644 --- a/cmd/shimdiag/share.go +++ b/cmd/shimdiag/share.go @@ -17,7 +17,7 @@ import ( var shareCommand = cli.Command{ Name: "share", Usage: "Share a file/directory in a shim's hosting utility VM", - ArgsUsage: " ", + ArgsUsage: "[flags] ", Flags: []cli.Flag{ cli.BoolFlag{ Name: "readonly,ro",