No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
13 additions and
7 deletions
-
bin/etherpump
|
|
@ -27,10 +27,17 @@ For more information on each command try: |
|
|
|
try: |
|
|
|
cmd = sys.argv[1] |
|
|
|
if cmd.startswith("-"): |
|
|
|
cmd = "sync" |
|
|
|
args = sys.argv |
|
|
|
else: |
|
|
|
args = sys.argv[2:] |
|
|
|
|
|
|
|
if any(arg in args for arg in ['--help', '-h']): |
|
|
|
print(usage) |
|
|
|
sys.exit(0) |
|
|
|
elif any(arg in args for arg in ['--version', '-v']): |
|
|
|
print('etherpump 0.0.1') |
|
|
|
sys.exit(0) |
|
|
|
|
|
|
|
except IndexError: |
|
|
|
print(usage) |
|
|
|
sys.exit(0) |
|
|
@ -41,4 +48,3 @@ try: |
|
|
|
except ImportError as e: |
|
|
|
print("Error performing command '{0}'\n(python said: {1})\n".format(cmd, e)) |
|
|
|
print(usage) |
|
|
|
|
|
|
|