mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-24 11:31:23 +02:00
Error: Exit if no arguments are given to 'wal'
This commit is contained in:
parent
57fed5b29c
commit
33638ecb92
6
wal.py
6
wal.py
@ -373,6 +373,12 @@ def main():
|
|||||||
# Get the args.
|
# Get the args.
|
||||||
args = get_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
|
# -q
|
||||||
if args.q:
|
if args.q:
|
||||||
sys.stdout = open('/dev/null', 'w')
|
sys.stdout = open('/dev/null', 'w')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user