docker/opts
Yong Tang beafc7c7d9 Remove `-ptr` from the help output of `service create`
This fix is based on the comment:
https://github.com/docker/docker/pull/28147#discussion_r86996347

Previously the output string of the `DurationOpt` is `duration-ptr`
and `Uint64Opt` is `uint64-ptr`. While it is clear to developers,
for a normal user `-ptr` might not be very informative.

On the other hand, the default value of `DurationOpt` and `Uint64Opt`
has already been quite informative: `none`. That means if no flag
provided, the value will be treated as none.
(like a ptr with nil as the default)

For that reason this fix removes the `-ptr`.

Also, the output in the docs of `service create` has been quite
out-of-sync with the true output. So this fix updates the docs
to have the most up-to-date help output of `service create --help`.

This fix is related to #28147.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-11-09 06:30:10 -08:00
..
hosts.go Fix opts tests after default port fix 2016-06-21 17:14:55 -07:00
hosts_test.go Fix opts tests after default port fix 2016-06-21 17:14:55 -07:00
hosts_unix.go Finish linting opts and trust package. 2015-08-27 17:36:11 +02:00
hosts_windows.go Windows: Default to npipe transport 2016-03-01 18:27:01 -08:00
ip.go Convert dockerd to use cobra and pflag 2016-08-25 13:09:03 -04:00
ip_test.go golint: trust 2015-08-27 11:40:27 +02:00
mount.go cli: add `--mount` to `docker run` 2016-11-03 07:08:59 +00:00
mount_test.go cli: add `--mount` to `docker run` 2016-11-03 07:08:59 +00:00
opts.go Remove `-ptr` from the help output of `service create` 2016-11-09 06:30:10 -08:00
opts_test.go Allow to set daemon and server configurations in a file. 2016-01-14 16:44:37 -05:00
opts_unix.go Windows [TP4] localhost mitigation 2015-11-06 13:52:59 -08:00
opts_windows.go Windows: Remove TP4 support from main code 2016-04-06 12:12:20 -07:00