summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
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()