summaryrefslogtreecommitdiff
path: root/flags.go
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 /flags.go
parent85f1fe4e1db7dcf16589bba19ba7807b60740d45 (diff)
Use command line name instead of external name
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,