1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command/service
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
..
cmd.go always add but hide experimental cmds and flags 2016-11-08 04:55:27 -08:00
create.go Remove -ptr from the help output of service create 2016-11-09 06:30:10 -08:00
inspect.go Fix typs from go to Go 2016-10-18 19:40:16 +08:00
inspect_test.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
list.go support show numbers of global service in service ls command 2016-11-08 16:17:15 +08:00
opts.go Remove -ptr from the help output of service create 2016-11-09 06:30:10 -08:00
opts_test.go Add --cpus flag to control cpu resources 2016-11-04 09:43:10 -07:00
ps.go Add -a option to service/node ps 2016-11-06 07:40:39 -05:00
remove.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
scale.go add replicated in service scale command description 2016-11-02 16:15:57 +08:00
update.go Remove -ptr from the help output of service create 2016-11-09 06:30:10 -08:00
update_test.go Add custom DNS settings to service update 2016-11-08 15:41:32 -08:00