diff --git a/list.go b/list.go index 52bcd647..ed6e4746 100644 --- a/list.go +++ b/list.go @@ -16,7 +16,7 @@ import ( "github.com/urfave/cli" ) -const formatOptions = `table(default) or json` +const formatOptions = `table or json` // containerState represents the platform agnostic pieces relating to a // running container's status and state @@ -41,7 +41,7 @@ var listCommand = cli.Command{ Flags: []cli.Flag{ cli.StringFlag{ Name: "format, f", - Value: "", + Value: "table", Usage: `select one of: ` + formatOptions, }, cli.BoolFlag{ @@ -63,7 +63,7 @@ var listCommand = cli.Command{ } switch context.String("format") { - case "", "table": + case "table": w := tabwriter.NewWriter(os.Stdout, 12, 1, 3, ' ', 0) fmt.Fprint(w, "ID\tPID\tSTATUS\tBUNDLE\tCREATED\n") for _, item := range s { diff --git a/man/runc-list.8.md b/man/runc-list.8.md index 26db0ff9..819ace89 100644 --- a/man/runc-list.8.md +++ b/man/runc-list.8.md @@ -5,5 +5,5 @@ runc list [command options] [arguments...] # OPTIONS - --format value, -f value select one of: table(default) or json + --format value, -f value select one of: table or json (default: "table") --quiet, -q display only container IDs