Bug#303168: ssh has poor -h|--help option parsing
package: openssh-client
version: 1:3.9p1-3
severity: minor
tags: experimental
ssh doesn't support -h nor --help. However, the usage displayed shows -h as a
valid option.
Could you please add -h and --help processing, and make certain the exit value
is 0, and that it displays on stdout instead?
--
gradall:/home.local/adam# ssh -h 1>/dev/null;echo $?
ssh: illegal option -- h
usage: ssh [-1246AaCfghkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
[-D port] [-e escape_char] [-F configfile] [-i identity_file]
[-L port:host:hostport] [-l login_name] [-m mac_spec] [-o option]
[-p port] [-R port:host:hostport] [-S ctl] [user@]hostname
[command]
1
gradall:/home.local/adam# ssh --help 1>/dev/null;echo $?
usage: ssh [-1246AaCfghkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
[-D port] [-e escape_char] [-F configfile] [-i identity_file]
[-L port:host:hostport] [-l login_name] [-m mac_spec] [-o option]
[-p port] [-R port:host:hostport] [-S ctl] [user@]hostname
[command]
1
Reply to: