File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
exec > & 2
2
2
UI=
3
3
[ " $(uname)" = " Darwin" ] && UI= ui- macos/all
4
- redo- ifchange Documentation/all $UI
4
+ redo- ifchange Documentation/all version/all $UI
5
5
6
6
echo
7
7
echo " What now?"
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ def parse_ipport(s):
63
63
no-latency-control sacrifice latency to improve bandwidth benchmarks
64
64
wrap= restart counting channel numbers after this number (for testing)
65
65
D,daemon run in the background as a daemon
66
+ V,version print sshuttle's version number
66
67
syslog send log messages to syslog (default if you use --daemon)
67
68
pidfile= pidfile name (only if using --daemon) [./sshuttle.pid]
68
69
server (internal use only)
@@ -72,6 +73,10 @@ def parse_ipport(s):
72
73
o = options .Options (optspec )
73
74
(opt , flags , extra ) = o .parse (sys .argv [2 :])
74
75
76
+ if opt .version :
77
+ import version
78
+ print version .TAG
79
+ sys .exit (0 )
75
80
if opt .daemon :
76
81
opt .syslog = 1
77
82
if opt .wrap :
You can’t perform that action at this time.
0 commit comments