simple refactor for the options of `runc spec`

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
Lai Jiangshan 2015-09-16 10:06:59 +08:00
parent 4ab132458f
commit 66f152d6dd
1 changed files with 10 additions and 2 deletions

12
spec.go
View File

@ -24,8 +24,16 @@ var specCommand = cli.Command{
Name: "spec",
Usage: "create a new specification file",
Flags: []cli.Flag{
cli.StringFlag{Name: "config-file, c", Value: "config.json", Usage: "path to spec file for writing"},
cli.StringFlag{Name: "runtime-file, r", Value: "runtime.json", Usage: "path to runtime file for writing"},
cli.StringFlag{
Name: "config-file, c",
Value: "config.json",
Usage: "path to spec config file for writing",
},
cli.StringFlag{
Name: "runtime-file, r",
Value: "runtime.json",
Usage: "path to runtime config file for writing",
},
},
Action: func(context *cli.Context) {
spec := specs.LinuxSpec{