aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwal.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wal.py b/wal.py
index 01fa729..0728d2a 100755
--- a/wal.py
+++ b/wal.py
@@ -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')