https://bugzilla.mindrot.org/show_bug.cgi?id=3115
Bug ID: 3115
Summary: Add --help
Product: Portable OpenSSH
Version: 8.1p1
Hardware: Other
OS: Linux
Status: NEW
Severity: trivial
Priority: P5
Component: Documentation
Assignee: unassigned-bugs at mindrot.org
Reporter: jidanni at jidanni.org
Add a --help option to all the commands, as the one non-accidental way
to trigger the usage messages.
$ scp --help
$ ssh --help
etc.
Already works like
$ cat --help
except for the "unknown option" and error $? value.
$ ssh --help
unknown option -- -
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
[-i identity_file] [-J [user@]host[:port]] [-L address]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p
port]
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] destination [command]
$ echo $?
255
Anyway, all other modern Unix commands have --help or -h etc. Yes, even
if they have man pages.
--
You are receiving this mail because:
You are watching the assignee of the bug.