diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-06-19 19:30:50 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-06-19 19:30:50 +1000 |
| commit | 33638ecb92357e1e256e3c14099298a11883a8b1 (patch) | |
| tree | 8f07796da078bf5a7f9a6ea404b33573cc4da9bd | |
| parent | 57fed5b29cbd7b7a64c114a3751f47793ce8396c (diff) | |
Error: Exit if no arguments are given to 'wal'
| -rwxr-xr-x | wal.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -373,6 +373,12 @@ def main(): # Get the args. args = get_args() + # If no args were passed. + if not len(sys.argv) > 1: + print("error: wal needs to be given arguments to run.") + print(" Refer to 'wal -h' for more info.") + exit(1) + # -q if args.q: sys.stdout = open('/dev/null', 'w') |
