examples: Reformat usage() function
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
e9aebb1198
Коммит
fa2332354b
@ -76,22 +76,25 @@ static void add_cmd(char *cmd){
|
|||||||
cmds[n]=strdup(cmd);
|
cmds[n]=strdup(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usage(){
|
static void usage(void)
|
||||||
fprintf(stderr,"Usage : ssh [options] [login@]hostname\n"
|
{
|
||||||
"sample client - libssh-%s\n"
|
fprintf(stderr,
|
||||||
"Options :\n"
|
"Usage : ssh [options] [login@]hostname\n"
|
||||||
" -l user : log in as user\n"
|
"sample client - libssh-%s\n"
|
||||||
" -p port : connect to port\n"
|
"Options :\n"
|
||||||
" -d : use DSS to verify host public key\n"
|
" -l user : log in as user\n"
|
||||||
" -r : use RSA to verify host public key\n"
|
" -p port : connect to port\n"
|
||||||
|
" -d : use DSS to verify host public key\n"
|
||||||
|
" -r : use RSA to verify host public key\n"
|
||||||
#ifdef WITH_PCAP
|
#ifdef WITH_PCAP
|
||||||
" -P file : create a pcap debugging file\n"
|
" -P file : create a pcap debugging file\n"
|
||||||
#endif
|
#endif
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
" -T proxycommand : command to execute as a socket proxy\n"
|
" -T proxycommand : command to execute as a socket proxy\n"
|
||||||
#endif
|
#endif
|
||||||
,
|
"\n",
|
||||||
ssh_version(0));
|
ssh_version(0));
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user