general: More helpful error message

This commit is contained in:
Dylan Araps 2017-12-30 07:08:44 +11:00
parent b37d70bdbf
commit 0d2c0daff0

View File

@ -56,7 +56,7 @@ def get_args(args):
don't display notifications.")
arg.add_argument("-r", action="store_true",
help="Deprecated: Use \
help="'wal -r' is deprecated: Use \
(cat ~/.cache/wal/sequences &) instead.")
arg.add_argument("-R", action="store_true",
@ -94,7 +94,8 @@ def process_args(args):
sys.exit(0)
if args.r:
print("Deprecated: Use (cat ~/.cache/wal/sequences &) instead.")
print("'wal -r' is deprecated: "
"Use 'cat ~/.cache/wal/sequences' instead.")
sys.exit(1)
if args.q: