summaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
Diffstat (limited to 'flags.go')
-rw-r--r--flags.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/flags.go b/flags.go
index 7658061..3a1cdfd 100644
--- a/flags.go
+++ b/flags.go
@@ -5,8 +5,8 @@ import (
)
// Complete default command line flag set defined by the standard library.
-func CommandLine(name string) {
- Complete(name, FlagSet(flag.CommandLine))
+func CommandLine() {
+ Complete(flag.CommandLine.Name(), FlagSet(flag.CommandLine))
}
// FlagSet returns a completer for a given standard library `flag.FlagSet`. It completes flag names,