diff --git a/man/runc-ps.8.md b/man/runc-ps.8.md new file mode 100644 index 000000000..abfca412b --- /dev/null +++ b/man/runc-ps.8.md @@ -0,0 +1,13 @@ +# NAME + runc ps - ps displays the processes running inside a container + +# SYNOPSIS + runc ps [command options] + +# OPTIONS + --format, -f select one of: table(default) or json + +The default format is table. The following will output the processes of a container +in json format: + + # runc ps -f json diff --git a/ps.go b/ps.go index 9b10af0c2..0b6ed1673 100644 --- a/ps.go +++ b/ps.go @@ -21,12 +21,7 @@ var psCommand = cli.Command{ cli.StringFlag{ Name: "format, f", Value: "", - Usage: `select one of: ` + formatOptions + `. - -The default format is table. The following will output the processes of a container -in json format: - - # runc ps -f json`, + Usage: `select one of: ` + formatOptions, }, }, Action: func(context *cli.Context) error {