diff options
author | Robin Jarry <robin@jarry.cc> | 2024-06-27 00:24:12 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-06-28 23:28:53 +0200 |
commit | 8e1f1dc199e1ea05cfd1319aa9338609e3ab3af6 (patch) | |
tree | 5adea2fc2ea9e770fc78ad3d2cc1da16ace7b163 /doc/aerc-smtp.5.scd | |
parent | 7c5a1afbda60ec81e84161306c2cf71d974b341a (diff) | |
download | aerc-8e1f1dc199e1ea05cfd1319aa9338609e3ab3af6.tar.gz |
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 <pjs@petersanchez.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'doc/aerc-smtp.5.scd')
0 files changed, 0 insertions, 0 deletions