From a3430dfdf28004a9328bf6eee1bdcf035d7b4c8a Mon Sep 17 00:00:00 2001 From: Blallo Date: Mon, 5 Apr 2021 19:56:55 +0200 Subject: [PATCH] Rename set message to set flags --- cli/papero/set.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/papero/set.go b/cli/papero/set.go index 73c18af..9cd352e 100644 --- a/cli/papero/set.go +++ b/cli/papero/set.go @@ -17,7 +17,7 @@ var setVerbs cli.CommandMap func init() { setVerbs = cli.CommandMap{ - "message": SetMessageCmd{}, + "flags": SetFlagsCmd{}, // "subscribe": SetSubscribedCmd{}, // "unsubscribe": SetUnsubscribedCmd{}, } @@ -52,9 +52,9 @@ func (s SetCmd) Help(w io.Writer, set *flag.FlagSet) { // VERBS -type SetMessageCmd struct{} +type SetFlagsCmd struct{} -func (sm SetMessageCmd) Func(args []string) error { +func (sm SetFlagsCmd) Func(args []string) error { if Session.Info.Opts.Debug { Log.Debug("enter set message") } @@ -118,7 +118,7 @@ func (sm SetMessageCmd) Func(args []string) error { return imaputils.SetFlags(Session.Config, &opts) } -func (sm SetMessageCmd) Help(w io.Writer, set *flag.FlagSet) { +func (sm SetFlagsCmd) Help(w io.Writer, set *flag.FlagSet) { fmt.Fprintf(w, "USAGE: %s set message [opts] MAILBOX MESSAGE_ID_OR_RANGE [MESSAGE_ID_OR_RANGE [MESSAGE_ID_OR_RANGE ...]]\n", Session.Info.Name) fmt.Fprintln(w, "\nMESSAGE_ID_OR_RANGE being a single message id or a git-like range") fmt.Fprintln(w, "Example:")