diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-01-30 21:26:19 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-01-30 21:26:19 +0100 |
commit | 5a8259226e0d21331da7e594a80c49add3e2721f (patch) | |
tree | d8880e89d8689d9c633c2e0644fee5d0ba285c8d | |
parent | 4af0a6383861090d45e12316cc3ae52cb2871ef4 (diff) | |
download | wcal-5a8259226e0d21331da7e594a80c49add3e2721f.tar.gz wcal-5a8259226e0d21331da7e594a80c49add3e2721f.tar.xz wcal-5a8259226e0d21331da7e594a80c49add3e2721f.zip |
fail on invalid arguments
-rw-r--r-- | wcal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wcal.c b/wcal.c index 8ee635d..c00d740 100644 --- a/wcal.c +++ b/wcal.c @@ -123,6 +123,7 @@ main(int argc, char *argv[]) case 'y': flagy = 1; break; case 'i': flagi = 1; break; case 'd': parse_isodate(optarg, &y, &m, &d); break; + case '?': exit(1); } long today = ymd2jd(y, m, d); |