summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-05-23 07:45:28 +0300
committerGitHub <[email protected]>2017-05-23 07:45:28 +0300
commit3e6cff0740a53c8e9d6106ad29a4fd1bc4536c99 (patch)
tree4fd293605f8e917ba9848c39a10f37287d65ef2a /readme.md
parentbae3fd94da57ecb9d04524c0b34895df0f86a1d1 (diff)
parent17b9aed67cff5e3ed6032e82785d774eece5c7a1 (diff)
Merge pull request #37 from posener/fixes
Fixes
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index e6c6bb8..74077e3 100644
--- a/readme.md
+++ b/readme.md
@@ -78,7 +78,7 @@ func main() {
// build sub command has a flag '-cpus', which
// expects number of cpus after it. in that case
// anything could complete this flag.
- "-cpus": complete.Anything,
+ "-cpus": complete.PredictAnything,
},
},
},
@@ -94,7 +94,7 @@ func main() {
// define global flags of the 'run' main command
// those will show up also when a sub command was entered in the
// command line
- Flags: complete.Flags{
+ GlobalFlags: complete.Flags{
// a flag '-h' which does not expects anything after it
"-h": complete.PredictNothing,