Daniel Nephin
69d3037635
Convert 'docker create' to use cobra and pflag
...
Return the correct status code on flag parsins errors.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-04 13:57:30 +02:00
Daniel Nephin
396c0660ab
Convert 'docker run' to a cobra command and to use pflags
...
Move container options into a struct so that tests should pass.
Remove unused FlagSet arg from Parse
Disable interspersed args on docker run
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-04 13:55:35 +02:00
Vincent Demeester
bbefa88a8c
Use spf13/cobra for docker search
...
- Move image command search to `api/client/image/search.go`
- Use cobra :)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-06-03 19:50:01 +02:00
Daniel Nephin
82c85e1e83
Make the -h flag deprecated.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-05-31 15:43:16 -07:00
Daniel Nephin
11ede59379
Support usage messages on bad flags.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-05-31 15:43:16 -07:00
Daniel Nephin
13cea4e58d
Update usage and help to (almost) match the existing docker behaviour
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-05-31 14:41:37 -07:00
Daniel Nephin
4786ccd05c
Migrate volume commands to cobra.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-05-31 14:41:37 -07:00