Code

junosc: Updated manpage and usage output.
authorSebastian Harl <sh@teamix.net>
Sun, 9 Sep 2012 12:09:51 +0000 (14:09 +0200)
committerSebastian Harl <sh@teamix.net>
Sun, 9 Sep 2012 12:09:51 +0000 (14:09 +0200)
doc/junosc.1.txt
src/junosc.c

index b22c5a5f024ff80fd6eb30afdaed1e66c653491f..65fba964db3654d418918315acbad2fbd18c1eb1 100644 (file)
@@ -10,7 +10,7 @@ junosc - a JUNOScript client application
 
 SYNOPSIS
 --------
-*junosc* ['options']
+*junosc -H* '<hostname>' ['options'] '<command>'
 
 DESCRIPTION
 -----------
@@ -20,6 +20,23 @@ user.
 
 OPTIONS
 -------
+*-H* '<host>'::
+       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* '<username>'::
+       Specify the username to connect with. Using this option will overwrite any
+       username specified the netrc(5) file.
+
+*-p* '<password>'::
+       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.
 
index 3bbb4c7b508ffb5be7d05025ef9b22dad74ed50b..e08cc7788fb631edbac7aae7ddf334d977697f06 100644 (file)
@@ -51,7 +51,7 @@ static void
 exit_usage(char *name, int status)
 {
        printf(
-"Usage: %s -H <host> -u <user> [<options>] <command>\n"
+"Usage: %s -H <host> [<options>] <command>\n"
 
 "\nOptions:\n"
 "  -H <host>    hostname to connect to\n"