Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sshuttle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
sshuttle
Commits
41d1f73d
Commit
41d1f73d
authored
Jan 06, 2012
by
Avery Pennarun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a --version (-V) option.
Now that we imported the feature from redo, might as well use it.
parent
cbc32ff8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
all.do
all.do
+1
-1
main.py
main.py
+5
-0
No files found.
all.do
View file @
41d1f73d
exec >&2
exec >&2
UI=
UI=
[ "$(uname)" = "Darwin" ] && UI=ui-macos/all
[ "$(uname)" = "Darwin" ] && UI=ui-macos/all
redo-ifchange Documentation/all $UI
redo-ifchange Documentation/all
version/all
$UI
echo
echo
echo "What now?"
echo "What now?"
...
...
main.py
View file @
41d1f73d
...
@@ -63,6 +63,7 @@ seed-hosts= with -H, use these hostnames for initial scan (comma-separated)
...
@@ -63,6 +63,7 @@ seed-hosts= with -H, use these hostnames for initial scan (comma-separated)
no-latency-control sacrifice latency to improve bandwidth benchmarks
no-latency-control sacrifice latency to improve bandwidth benchmarks
wrap= restart counting channel numbers after this number (for testing)
wrap= restart counting channel numbers after this number (for testing)
D,daemon run in the background as a daemon
D,daemon run in the background as a daemon
V,version print sshuttle's version number
syslog send log messages to syslog (default if you use --daemon)
syslog send log messages to syslog (default if you use --daemon)
pidfile= pidfile name (only if using --daemon) [./sshuttle.pid]
pidfile= pidfile name (only if using --daemon) [./sshuttle.pid]
server (internal use only)
server (internal use only)
...
@@ -72,6 +73,10 @@ hostwatch (internal use only)
...
@@ -72,6 +73,10 @@ hostwatch (internal use only)
o
=
options
.
Options
(
optspec
)
o
=
options
.
Options
(
optspec
)
(
opt
,
flags
,
extra
)
=
o
.
parse
(
sys
.
argv
[
2
:])
(
opt
,
flags
,
extra
)
=
o
.
parse
(
sys
.
argv
[
2
:])
if
opt
.
version
:
import
version
print
version
.
TAG
sys
.
exit
(
0
)
if
opt
.
daemon
:
if
opt
.
daemon
:
opt
.
syslog
=
1
opt
.
syslog
=
1
if
opt
.
wrap
:
if
opt
.
wrap
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment