Rename --bundle to --file

This renames the '--bundle' flag for docker (stack) deploy
to be consistent with 'docker build'.

Note that there's no shorthand '-f' added for now,
because this may be confusing on 'docker stack config',
which also takes a file, and for which we may want to
have a '--format' flag in future.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2016-07-20 15:52:43 +02:00
parent 3d4bde92b7
commit 06f35262c4
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
5 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@ import (
func addBundlefileFlag(opt *string, flags *pflag.FlagSet) {
flags.StringVar(
opt,
"bundle", "",
"file", "",
"Path to a Distributed Application Bundle file (Default: STACK.dab)")
}
@ -26,7 +26,7 @@ func loadBundlefile(stderr io.Writer, namespace string, path string) (*bundlefil
}
if _, err := os.Stat(path); err != nil {
return nil, fmt.Errorf(
"Bundle %s not found. Specify the path with -f or --bundle",
"Bundle %s not found. Specify the path with --file",
path)
}

View file

@ -17,7 +17,7 @@ Usage: docker deploy [OPTIONS] STACK
Create and update a stack from a Distributed Application Bundle (DAB)
Options:
--bundle string Path to a Distributed Application Bundle file (Default: STACK.dab)
--file string Path to a Distributed Application Bundle file (Default: STACK.dab)
--help Print usage
```

View file

@ -17,7 +17,7 @@ Usage: docker stack config [OPTIONS] STACK
Print the stack configuration
Options:
--bundle string Path to a Distributed Application Bundle file (Default: STACK.dab)
--file string Path to a Distributed Application Bundle file (Default: STACK.dab)
--help Print usage
```

View file

@ -20,7 +20,7 @@ Aliases:
deploy, up
Options:
--bundle string Path to a Distributed Application Bundle file (Default: STACK.dab)
--file string Path to a Distributed Application Bundle file (Default: STACK.dab)
--help Print usage
```

View file

@ -44,7 +44,7 @@ Usage: docker deploy [OPTIONS] STACK
Create and update a stack
Options:
-f, --bundle string Path to a bundle (Default: STACK.dab)
--file string Path to a Distributed Application Bundle file (Default: STACK.dab)
--help Print usage
```