diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-04-02 14:31:12 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-04-02 14:31:12 +1000 |
| commit | 201b4d9c89cc1ab5e587432a6372677646682009 (patch) | |
| tree | a4f1202f1214c80ac79054b85c9eb5ae1af57d49 | |
| parent | 332dfe528328b445e869f79f6d5a2adae3a533fc (diff) | |
args: Handle -i and --theme.
| -rw-r--r-- | pywal/__main__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py index fc341cf..53ddded 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -103,6 +103,12 @@ def process_args(args): " Refer to \"wal -h\" for more info.") 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: print("wal", __version__) sys.exit(0) |
