We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
demo -h
1 parent 2eec3d0 commit cc794f4Copy full SHA for cc794f4
demo.py
@@ -149,17 +149,18 @@ def main():
149
except getopt.GetoptError, e:
150
usage(str(e))
151
return 1
152
+ for opt, arg in opts:
153
+ if opt == '-h':
154
+ usage()
155
+ return 0
156
157
home = os.path.abspath('demo')
158
nuke = args and args[0] == 'nuke'
159
if not os.path.exists(home) or nuke:
160
backend = 'anydbm'
161
template = 'classic'
162
for opt, arg in opts:
- if opt == '-h':
- usage()
- return 0
- elif opt == '-t':
163
+ if opt == '-t':
164
template = arg
165
elif opt == '-b':
166
backend = arg
0 commit comments