[tor-commits] [torsocks/master] Add --version to torsocks.in
dgoulet at torproject.org
dgoulet at torproject.org
Fri Apr 4 22:40:27 UTC 2014
commit 7719ee4f6a320cb812c8c5fbafea35526e567642
Author: David Goulet <dgoulet at ev0ke.net>
Date: Tue Nov 12 22:49:19 2013 -0500
Add --version to torsocks.in
Fixes #19
Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
src/bin/torsocks.in | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/bin/torsocks.in b/src/bin/torsocks.in
index 61fb593..aebd2d4 100644
--- a/src/bin/torsocks.in
+++ b/src/bin/torsocks.in
@@ -121,7 +121,8 @@ usage ()
echo ""
echo "Options:"
echo " -h, --help Show this help"
- echo " , --shell Spawn a torified shell"
+ echo " --shell Spawn a torified shell"
+ echo " --version Show version"
echo " on, off Add or remove torsocks library from @LDPRELOAD@"
echo " show, sh Show the current value of the @LDPRELOAD@"
echo ""
@@ -167,6 +168,9 @@ case "$1" in
--shell)
tor_shell
;;
+ --version)
+ echo "Torsocks @VERSION@"
+ ;;
*)
torify_app $@
;;
More information about the tor-commits
mailing list