From e63b7a9037200ec7a2435f996ad9dd07d2a83128 Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Wed, 27 Nov 2019 21:50:17 +0200 Subject: Use command line name instead of external name --- flags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flags.go') 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, -- cgit v1.2.3