readme: fix example
This commit is contained in:
parent
3636c19b38
commit
17b9aed67c
|
@ -78,7 +78,7 @@ func main() {
|
||||||
// build sub command has a flag '-cpus', which
|
// build sub command has a flag '-cpus', which
|
||||||
// expects number of cpus after it. in that case
|
// expects number of cpus after it. in that case
|
||||||
// anything could complete this flag.
|
// 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
|
// define global flags of the 'run' main command
|
||||||
// those will show up also when a sub command was entered in the
|
// those will show up also when a sub command was entered in the
|
||||||
// command line
|
// command line
|
||||||
Flags: complete.Flags{
|
GlobalFlags: complete.Flags{
|
||||||
|
|
||||||
// a flag '-h' which does not expects anything after it
|
// a flag '-h' which does not expects anything after it
|
||||||
"-h": complete.PredictNothing,
|
"-h": complete.PredictNothing,
|
||||||
|
|
Loading…
Reference in New Issue