这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@briceburg
Copy link
Contributor

Built on top of #10

This consolidates the goflag/pflag library to spf13/plfag ::
3dc0c1c

as opposed to ogier/pflag, spf13/pflag supports "--flag arg" syntax:

@briceburg briceburg changed the title Briceburg/pflag support POSIX/GNU-style --flags with spf13/pflag Jun 22, 2016
@briceburg
Copy link
Contributor Author

briceburg commented Jun 22, 2016

This was not well described. This patch aims to:

  • cleanup code by consolidating the flag parsing (this was done in two parts of the code before)
  • upport POSIX/GNU-style --flags by switching to spf13/pflag package.
mhsendmail --from=user@domain.com test@mailhog.local ...
mhsendmail --from user@domain.com test@mailhog.local ...
mhsendmail --f user@domain.com test@mailhog.local ...

# and the usual
mhsendmail -from "user@domain.com" test@mailhog.local ...

@ian-kent
Copy link
Member

ian-kent commented Jul 7, 2016

thanks @briceburg, code looks a lot cleaner 👍

@ian-kent ian-kent merged commit 3dc0c1c into mailhog:master Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants