diff options
author | Dean Deng <deandeng@google.com> | 2020-12-03 11:44:53 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-03 11:47:30 -0800 |
commit | bec8cea6513beaf6c2348ed0b71cb40e417beb68 (patch) | |
tree | af2933a205ec05fbfcf76988b1a42dde49a47d5d /runsc/cmd | |
parent | 3186b50dffc196755a3ce7ce0ab44253f78a2495 (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/cmd')
-rw-r--r-- | runsc/cmd/do.go | 2 |
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 } |