From: Junio C Hamano Date: Thu, 24 Apr 2025 12:43:15 GMT Subject: Re: [PATCH v4 3/3] send-email: add option to generate passswords like OAuth2 tokens Message-ID: In-Reply-To: Aditya Garg writes: >> On 24 Apr 2025, at 12:33 AM, Junio C Hamano wrote: >> >> Aditya Garg writes: >> >>> @@ -230,6 +230,14 @@ or on the command line. If a username has been specified (with >>> specified (with `--smtp-pass` or `sendemail.smtpPass`), then >>> a password is obtained using 'git-credential'. >>> >>> +--smtp-passeval[=]:: >> >> Lose the pair of [] that marks the value optional. Compare it with, >> say, --smtp-user that is described as: > > The value is not optional. It doesn't make sense to leave this empty right? That is why I said "Lose the pair of []". IOW what we see above is wrong and it should be something like --smtp-passeval=:: without the []. Just like --smtp-user takes a mandatory , like this: >> --smtp-user=:: >> Username for SMTP-AUTH. Default is ... your "passeval" takes a mandatory , hence = should NOT be enclosed in a pair of [].