diff options
| author | Eyal Posener <[email protected]> | 2019-11-27 21:50:17 +0200 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2019-11-27 22:01:40 +0200 |
| commit | e63b7a9037200ec7a2435f996ad9dd07d2a83128 (patch) | |
| tree | 0f082cfe7e967b6064a0adef3c132b00b906f915 /flags.go | |
| parent | 85f1fe4e1db7dcf16589bba19ba7807b60740d45 (diff) | |
Use command line name instead of external name
Diffstat (limited to 'flags.go')
| -rw-r--r-- | flags.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |
