merge branch 'pr-1129'

LGTMs: @mrunalp @cyphar
Closes #1129
This commit is contained in:
Aleksa Sarai 2016-10-25 16:38:01 +11:00
commit ae078224fc
No known key found for this signature in database
GPG Key ID: 9E18AA267DDB8DB4
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
"github.com/urfave/cli"
@ -48,6 +49,11 @@ command(s) that get executed on start, edit the args parameter of the spec. See
},
},
Action: func(context *cli.Context) error {
if context.NArg() != 1 {
fmt.Printf("Incorrect Usage.\n\n")
cli.ShowCommandHelp(context, "create")
return fmt.Errorf("runc: \"create\" requires exactly one argument")
}
spec, err := setupSpec(context)
if err != nil {
return err