Files
docker-cli/command
Yong Tang 249d4e5709 Show usage when docker swarm update has no flags
This fix tries to address the issue raised in 24352. Previously,
when `docker swarm update` has no flags, the output is
```
Swarm updated.
```
even though nothing was updated. This could be misleading for
users.

This fix tries to address the issue by adding a `PreRunE` function
in the command so that in case no flag is provided (`cmd.Flags().NFlag() == 0`),
the usage will be outputed instead.

An integration has been added to cover the changes.

This fix fixes 24352.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-12-13 05:05:04 -08:00
..
2016-11-08 16:17:15 -08:00
2016-12-02 13:42:50 -08:00
2016-10-25 06:43:54 +00:00
2016-12-05 15:18:36 +01:00
2016-12-02 11:33:29 -08:00
2016-09-19 10:34:31 -07:00