summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ba1aa22)
raw | patch | inline | side by side (parent: ba1aa22)
author | Sebastian Harl <sh@teamix.net> | |
Sun, 9 Sep 2012 12:09:51 +0000 (14:09 +0200) | ||
committer | Sebastian Harl <sh@teamix.net> | |
Sun, 9 Sep 2012 12:09:51 +0000 (14:09 +0200) |
doc/junosc.1.txt | patch | blob | history | |
src/junosc.c | patch | blob | history |
diff --git a/doc/junosc.1.txt b/doc/junosc.1.txt
index b22c5a5f024ff80fd6eb30afdaed1e66c653491f..65fba964db3654d418918315acbad2fbd18c1eb1 100644 (file)
--- a/doc/junosc.1.txt
+++ b/doc/junosc.1.txt
SYNOPSIS
--------
-*junosc* ['options']
+*junosc -H* '<hostname>' ['options'] '<command>'
DESCRIPTION
-----------
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.
diff --git a/src/junosc.c b/src/junosc.c
index 3bbb4c7b508ffb5be7d05025ef9b22dad74ed50b..e08cc7788fb631edbac7aae7ddf334d977697f06 100644 (file)
--- a/src/junosc.c
+++ b/src/junosc.c
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"