mirror of
https://github.com/containerd/containerd.git
synced 2026-08-07 00:21:24 +00:00
Merge pull request #12748 from ningmingxiao/fix_args
command: show help and exit on unknown positional arguments
This commit is contained in:
@@ -119,6 +119,10 @@ can be used and modified as necessary as a custom configuration.`
|
||||
ociHook,
|
||||
}
|
||||
app.Action = func(cliContext *cli.Context) error {
|
||||
if args := cliContext.Args(); args.First() != "" {
|
||||
return cli.ShowCommandHelp(cliContext, args.First())
|
||||
}
|
||||
|
||||
var (
|
||||
start = time.Now()
|
||||
signals = make(chan os.Signal, 2048)
|
||||
|
||||
Reference in New Issue
Block a user