From a60746c374c5a27f8a5ea69d55652d539d2778c2 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 29 Jan 2024 10:06:00 -0600 Subject: [PATCH] use -h for help --- oizys/oizys.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oizys/oizys.nim b/oizys/oizys.nim index 799750e..24628d6 100644 --- a/oizys/oizys.nim +++ b/oizys/oizys.nim @@ -87,8 +87,8 @@ oizys [opts] build build system flake options: - --help > show this help - -h|--host > hostname (current host) + -h|--help > show this help + --host > hostname (current host) -f|--flake > path to flake ($FLAKE_PATH or $HOME/styx) -c|--cache > name of cachix binary cache (daylin) """ @@ -108,9 +108,9 @@ proc runCmd(c: OizysContext, cmd: string) = proc parseFlag(c: var OizysContext, key, val: string) = case key: - of "help": + of "h","help": echo usage; quit 0 - of "h", "host": + of "host": c.host = val of "f", "flake": c.flake = val