summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-12-03 11:44:53 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-03 11:47:30 -0800
commitbec8cea6513beaf6c2348ed0b71cb40e417beb68 (patch)
treeaf2933a205ec05fbfcf76988b1a42dde49a47d5d /runsc
parent3186b50dffc196755a3ce7ce0ab44253f78a2495 (diff)
Surface usage message for `runsc do`.
c.Usage() only returns a string; f.Usage() will print the usage message. PiperOrigin-RevId: 345500123
Diffstat (limited to 'runsc')
-rw-r--r--runsc/cmd/do.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/cmd/do.go b/runsc/cmd/do.go
index 640de4c47..8a8d9f752 100644
--- a/runsc/cmd/do.go
+++ b/runsc/cmd/do.go
@@ -81,7 +81,7 @@ func (c *Do) SetFlags(f *flag.FlagSet) {
// Execute implements subcommands.Command.Execute.
func (c *Do) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus {
if len(f.Args()) == 0 {
- c.Usage()
+ f.Usage()
return subcommands.ExitUsageError
}