Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: detect invalid arguments early
Currently, when running aerc --help or aerc --version, we get an obscure error when aerc is already running. $ aerc --help response: command not understood When it is not running, it starts but prints the same error message in the status line with weird colors. Avoid sending garbage into the control socket. Try to detect invalid arguments early. $ aerc --foobaz error: unknown argument: --foobaz Reported-by: Peter Sanchez <[email protected]> Signed-off-by: Robin Jarry <[email protected]> Tested-by: Bence Ferdinandy <[email protected]>
- Loading branch information