From 1973fead31ca8b8e0d09a1e0fb331001bac605ff Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 6 Dec 2021 16:01:16 +0100 Subject: [PATCH] aoc-get: exit if arguments aren't valid --- aoc-get/aoc-get | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aoc-get/aoc-get b/aoc-get/aoc-get index dbe975b..8acbbaa 100755 --- a/aoc-get/aoc-get +++ b/aoc-get/aoc-get @@ -13,7 +13,9 @@ set --append options (fish_opt --short h --long help) set --append options (fish_opt --short d --long day --required-val)"!_validate_int --min 1 --max 25" set --append options (fish_opt --short y --long year --required-val)"!_validate_int --min 2015" -argparse $options -- $argv +if not argparse $options -- $argv + exit 1 +end if set --query _flag_help usage