{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/23837","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/23837/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/23837/comments","events_url":"https://api.github.com/repos/docker/docker/issues/23837/events","html_url":"https://github.com/docker/docker/issues/23837","id":161581999,"number":23837,"title":"`docker ps --help` is unpretty","user":{"login":"AkihiroSuda","id":9248427,"avatar_url":"https://avatars.githubusercontent.com/u/9248427?v=3","gravatar_id":"","url":"https://api.github.com/users/AkihiroSuda","html_url":"https://github.com/AkihiroSuda","followers_url":"https://api.github.com/users/AkihiroSuda/followers","following_url":"https://api.github.com/users/AkihiroSuda/following{/other_user}","gists_url":"https://api.github.com/users/AkihiroSuda/gists{/gist_id}","starred_url":"https://api.github.com/users/AkihiroSuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkihiroSuda/subscriptions","organizations_url":"https://api.github.com/users/AkihiroSuda/orgs","repos_url":"https://api.github.com/users/AkihiroSuda/repos","events_url":"https://api.github.com/users/AkihiroSuda/events{/privacy}","received_events_url":"https://api.github.com/users/AkihiroSuda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/cli","name":"area/cli","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/status/claimed","name":"status/claimed","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/53","html_url":"https://github.com/docker/docker/milestones/1.12.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/53/labels","id":1657301,"number":53,"title":"1.12.0","description":"feature/code freeze: June 14th, 2016","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":69,"closed_issues":345,"state":"open","created_at":"2016-03-21T13:47:53Z","updated_at":"2016-06-22T17:58:33Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-06-22T02:39:59Z","updated_at":"2016-06-22T18:14:43Z","closed_at":null,"body":"**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.12.0-rc2\r\n API version:  1.24\r\n Go version:   go1.6.2\r\n Git commit:   906eacd-unsupported\r\n Built:        Fri Jun 17 21:12:28 2016\r\n OS/Arch:      linux/amd64\r\n Experimental: true\r\n```\r\n\r\n\r\n\r\n**Steps to reproduce the issue:**\r\n`docker ps --help`\r\n\r\n**Describe the results you received:**\r\n\r\n`--` is unneeded and misleading\r\n\r\n```\r\nUsage:  docker ps [OPTIONS]\r\n\r\nList containers\r\n\r\nOptions:\r\n  -n, -- int            Show n last created containers (includes all states) (default -1)\r\n  -a, --all             Show all containers (default shows just running)\r\n  -f, --filter value    Filter output based on conditions provided (default [])\r\n      --format string   Pretty-print containers using a Go template\r\n      --help            Print usage\r\n  -l, --latest          Show the latest created container (includes all states)\r\n      --no-trunc        Don't truncate output\r\n  -q, --quiet           Only display numeric IDs\r\n```\r\n\r\n**Describe the results you expected:**\r\nThe following result seems mostly expected:\r\n```\r\n  -n int                            Show n last created containers (includes all states) (default -1)\r\n```\r\n\r\nBut I don't think it can be easily implemented without making a modification to `spf13/pflag`.\r\nhttps://github.com/docker/docker/blob/v1.12.0-rc2/api/client/container/ps.go#L58\r\n\r\n\r\nSo I suggest adding `--some-long-flag` (I dont stick to `--latest-n`) like this:\r\n```\r\n  -n, --latest-n int            Show n last created containers (includes all states) (default -1)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/227830919","html_url":"https://github.com/docker/docker/issues/23837#issuecomment-227830919","issue_url":"https://api.github.com/repos/docker/docker/issues/23837","id":227830919,"user":{"login":"sbose78","id":545280,"avatar_url":"https://avatars.githubusercontent.com/u/545280?v=3","gravatar_id":"","url":"https://api.github.com/users/sbose78","html_url":"https://github.com/sbose78","followers_url":"https://api.github.com/users/sbose78/followers","following_url":"https://api.github.com/users/sbose78/following{/other_user}","gists_url":"https://api.github.com/users/sbose78/gists{/gist_id}","starred_url":"https://api.github.com/users/sbose78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbose78/subscriptions","organizations_url":"https://api.github.com/users/sbose78/orgs","repos_url":"https://api.github.com/users/sbose78/repos","events_url":"https://api.github.com/users/sbose78/events{/privacy}","received_events_url":"https://api.github.com/users/sbose78/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T18:14:43Z","updated_at":"2016-06-22T18:14:43Z","body":"#dibs "}}
{"actor":{"display_login":"sbose78"}}