From b65cb1ca497d4f048def2e5a46fa64ad5007149e Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 9 Sep 2012 14:09:51 +0200 Subject: [PATCH] junosc: Updated manpage and usage output. --- doc/junosc.1.txt | 19 ++++++++++++++++++- src/junosc.c | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) 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" -- 2.30.2