Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodbtools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
zodbtools
Commits
ba4ffa31
Commit
ba4ffa31
authored
Sep 16, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b81bf3f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
zodbtools/zodbpack.py
zodbtools/zodbpack.py
+5
-5
No files found.
zodbtools/zodbpack.py
View file @
ba4ffa31
...
@@ -78,16 +78,16 @@ XXX
...
@@ -78,16 +78,16 @@ XXX
Options:
Options:
--
gc perform garbage-collection as well
--
nogc don't perform garbage-collection
-h --help show this help
-h --help show this help
"""
,
file
=
out
)
"""
,
file
=
out
)
@
func
@
func
def
main
(
argv
):
def
main
(
argv
):
gc
=
Fals
e
gc
=
Tru
e
try
:
try
:
optv
,
argv
=
getopt
.
getopt
(
argv
[
1
:],
"h"
,
[
"gc"
,
"help"
])
optv
,
argv
=
getopt
.
getopt
(
argv
[
1
:],
"h"
,
[
"
no
gc"
,
"help"
])
except
getopt
.
GetoptError
as
e
:
except
getopt
.
GetoptError
as
e
:
print
(
e
,
file
=
sys
.
stderr
)
print
(
e
,
file
=
sys
.
stderr
)
usage
(
sys
.
stderr
)
usage
(
sys
.
stderr
)
...
@@ -97,8 +97,8 @@ def main(argv):
...
@@ -97,8 +97,8 @@ def main(argv):
if
opt
in
(
"-h"
,
"--help"
):
if
opt
in
(
"-h"
,
"--help"
):
usage
(
sys
.
stdout
)
usage
(
sys
.
stdout
)
sys
.
exit
(
0
)
sys
.
exit
(
0
)
if
opt
in
(
"--gc"
):
if
opt
in
(
"--
no
gc"
):
gc
=
Tru
e
gc
=
Fals
e
if
len
(
argv
)
!=
2
:
if
len
(
argv
)
!=
2
:
usage
(
sys
.
stderr
)
usage
(
sys
.
stderr
)
...
...
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