From bec8cea6513beaf6c2348ed0b71cb40e417beb68 Mon Sep 17 00:00:00 2001 From: Dean Deng Date: Thu, 3 Dec 2020 11:44:53 -0800 Subject: Surface usage message for `runsc do`. c.Usage() only returns a string; f.Usage() will print the usage message. PiperOrigin-RevId: 345500123 --- runsc/cmd/do.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runsc/cmd') 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 } -- cgit v1.2.3