add one more command for help
This commit is contained in:
parent
b85c9c6c25
commit
fc9b7adcb7
2
bink.py
2
bink.py
@ -56,7 +56,7 @@ def generate_feed(before=None, count=200):
|
|||||||
return blogs
|
return blogs
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
if sys.argv[1] == "--help":
|
if sys.argv[1] == "--help" or sys.argv[1] == "-h":
|
||||||
exit(helptext)
|
exit(helptext)
|
||||||
elif sys.argv[1] == "--dump":
|
elif sys.argv[1] == "--dump":
|
||||||
with open("/dev/stdout", "w") as f:
|
with open("/dev/stdout", "w") as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user