mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-09 23:48:35 +01:00
args: Handle -i and --theme.
This commit is contained in:
parent
332dfe5283
commit
201b4d9c89
@ -103,6 +103,12 @@ def process_args(args):
|
|||||||
" Refer to \"wal -h\" for more info.")
|
" Refer to \"wal -h\" for more info.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
if not args.i and not args.theme:
|
||||||
|
print("error: No input specified.\n"
|
||||||
|
" --theme and -i are required.\n"
|
||||||
|
" Refer to \"wal -h\" for more info.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if args.v:
|
if args.v:
|
||||||
print("wal", __version__)
|
print("wal", __version__)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user