From 1b0fa23f87e502a3d04baedb83dcf7d7af7498a7 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Tue, 6 Sep 2022 09:13:26 +0200 Subject: [PATCH] Rename FlagSetter to FlagsGetter (#40) --- acmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acmd.go b/acmd.go index f180c8e..83703b6 100644 --- a/acmd.go +++ b/acmd.go @@ -57,11 +57,11 @@ type Command struct { // FlagSet is an optional field where you can provide command's flags. // Is used for autocomplete. Works best with https://github.com/cristalhq/flagx - FlagSet FlagSetter + FlagSet FlagsGetter } -// FlagSetter returns flags for the command. See examples. -type FlagSetter interface { +// FlagsGetter returns flags for the command. See examples. +type FlagsGetter interface { Flags() *flag.FlagSet }