Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
4558d23f
Commit
4558d23f
authored
Apr 20, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d89c0f6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
setup.py
setup.py
+0
-2
wcfs/__init__.py
wcfs/__init__.py
+13
-2
No files found.
setup.py
View file @
4558d23f
...
...
@@ -362,8 +362,6 @@ setup(
entry_points
=
{
'console_scripts'
:
[
# start wcfs for zurl
# XXX name -> wcfs_serve? (it is confusing to have 2
# wcfs with different behaviour)
'wcfs = wendelin.wcfs:main'
,
# demo to test
...
...
wcfs/__init__.py
View file @
4558d23f
...
...
@@ -345,10 +345,21 @@ def serve(zurl, optv, exec_=False):
# if called as main just -> serve()
# if called as main just -> exec serve()
def
_usage
(
w
):
progname
=
os
.
path
.
basename
(
sys
.
argv
[
0
])
print
(
"Wcfs serves WCFS filesystem for ZODB at zurl for wendelin.core .
\
n
"
,
file
=
w
)
print
(
"Usage: %s [-h | wcfs.go options] zurl"
%
progname
,
file
=
w
)
sys
.
exit
(
2
)
def
main
():
argv
=
sys
.
argv
[
1
:]
# XXX usage
if
len
(
argv
)
==
0
:
_usage
(
sys
.
stderr
)
if
argv
[
0
]
==
'-h'
:
os
.
execv
(
_wcfs_exe
(),
[
_wcfs_exe
(),
'-h'
])
zurl
=
argv
[
-
1
]
# -a -b zurl -> zurl
optv
=
argv
[:
-
1
]
# -a -b zurl -> -a -b
serve
(
zurl
,
optv
,
exec_
=
True
)
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