summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2019-11-27 21:50:17 +0200
committerEyal Posener <[email protected]>2019-11-27 22:01:40 +0200
commite63b7a9037200ec7a2435f996ad9dd07d2a83128 (patch)
tree0f082cfe7e967b6064a0adef3c132b00b906f915 /example
parent85f1fe4e1db7dcf16589bba19ba7807b60740d45 (diff)
Use command line name instead of external name
Diffstat (limited to 'example')
-rw-r--r--example/compflag/main.go2
-rw-r--r--example/stdlib/main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/example/compflag/main.go b/example/compflag/main.go
index 98328fe..1d51307 100644
--- a/example/compflag/main.go
+++ b/example/compflag/main.go
@@ -20,7 +20,7 @@ var (
func main() {
// Parse flags and perform bash completion if needed.
- compflag.Parse("stdlib")
+ compflag.Parse()
// Program logic.
if *name == "" {
diff --git a/example/stdlib/main.go b/example/stdlib/main.go
index 5beee51..c54130c 100644
--- a/example/stdlib/main.go
+++ b/example/stdlib/main.go
@@ -20,7 +20,7 @@ var (
func main() {
// Run the completion. Notice that since we are using standard library flags, only the flag
// names will be completed and not their values.
- complete.CommandLine("stdlib")
+ complete.CommandLine()
// Parse the flags.
flag.Parse()