commit 237f44e20078e555b1fc75d021030dd7fb3ab6eb Author: David Goulet <dgou...@ev0ke.net> Date: Sat Aug 24 15:41:35 2013 -0400
Add proper usage message to torsocks shell script Signed-off-by: David Goulet <dgou...@ev0ke.net> --- src/bin/torsocks.in | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/bin/torsocks.in b/src/bin/torsocks.in index c000565..834816f 100644 --- a/src/bin/torsocks.in +++ b/src/bin/torsocks.in @@ -110,7 +110,21 @@ torify_app () usage () { - echo "$0: Please see torsocks(1) or read comment at top of $0" + echo "$0 [OPTIONS] [COMMAND [arg ...]]" + echo "" + echo "usage: $0 command args" + echo "" + echo "Options:" + echo " -h, --help Show this help" + echo " , --shell Spawn a torified shell" + echo " on, off Add or remove torsocks library from @LDPRELOAD@" + echo " show, sh Show the current value of the @LDPRELOAD@" + echo "" + echo "Example:" + echo " $ torsocks ssh u...@host.com -p 1234" + echo "" + echo "Please see torsocks(1), torsocks.conf(5) and torsocks(8) for more information." + } if [ $# -eq 0 ] ; then _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits