Files
docker-cli/components/engine/cli/command/swarm
Yong Tang 9c84f95c6e 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>
Upstream-commit: 5aa5a1cb008963ee6a99011b8f7cd1f489e2bc6a
Component: engine
2016-12-13 05:05:04 -08:00
..
2016-11-17 10:54:10 -08:00
2016-11-10 12:05:19 -08:00
2016-10-29 15:03:26 +08:00
2016-10-19 19:47:42 +08:00
2016-11-09 14:40:47 +08:00
2016-09-08 15:46:29 -04:00
2016-11-28 13:24:02 +09:00
2016-11-09 16:09:01 -08:00