From: Sebastian Harl Date: Sun, 9 Sep 2012 12:09:51 +0000 (+0200) Subject: junosc: Updated manpage and usage output. X-Git-Url: https://git.tokkee.org/?p=libjunos.git;a=commitdiff_plain;h=b65cb1ca497d4f048def2e5a46fa64ad5007149e junosc: Updated manpage and usage output. --- diff --git a/doc/junosc.1.txt b/doc/junosc.1.txt index b22c5a5..65fba96 100644 --- a/doc/junosc.1.txt +++ b/doc/junosc.1.txt @@ -10,7 +10,7 @@ junosc - a JUNOScript client application SYNOPSIS -------- -*junosc* ['options'] +*junosc -H* '' ['options'] '' DESCRIPTION ----------- @@ -20,6 +20,23 @@ user. OPTIONS ------- +*-H* '':: + Specify the hostname to connect to. Unless disabled by the *-n* option, + the hostname will be used to lookup further connection options in the + netrc(5) file. + +*-u* '':: + Specify the username to connect with. Using this option will overwrite any + username specified the netrc(5) file. + +*-p* '':: + Specify the password to connect with. Using this option will overwrite any + password specified in the netrc(5) file. + +*-n*:: + If specified, no attempt will be made to lookup information in the + netrc(5) file. + *-h*:: Display a usage and help summary and exit. diff --git a/src/junosc.c b/src/junosc.c index 3bbb4c7..e08cc77 100644 --- a/src/junosc.c +++ b/src/junosc.c @@ -51,7 +51,7 @@ static void exit_usage(char *name, int status) { printf( -"Usage: %s -H -u [] \n" +"Usage: %s -H [] \n" "\nOptions:\n" " -H hostname to connect to\n"