mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-07 08:34:01 +01:00
wal: Show usage when no args passed
This commit is contained in:
parent
63d8a92e4f
commit
d49caeebfb
@ -104,7 +104,8 @@ def parse_args_exit(parser):
|
||||
args = parser.parse_args()
|
||||
|
||||
if not len(sys.argv) > 1:
|
||||
parser.error("wal needs to be given arguments to run.")
|
||||
parser.print_help()
|
||||
sys.exit(1)
|
||||
|
||||
if args.v:
|
||||
parser.exit(0, "wal %s\n" % __version__)
|
||||
|
Loading…
Reference in New Issue
Block a user