From db30869eea08d1211241cfeda36be162617540d3 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 2 Feb 2024 16:43:52 -0600 Subject: [PATCH] remove level of help indentation --- oizys/oizys.nim | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/oizys/oizys.nim b/oizys/oizys.nim index 5ba6db6..1af45f3 100644 --- a/oizys/oizys.nim +++ b/oizys/oizys.nim @@ -90,19 +90,20 @@ proc switch(c: OizysContext) = const usage = """ oizys [opts] - commands: - dry poor man's nix flake check - boot nixos-rebuild boot - switch nixos-rebuild switch - cache build and push to cachix - build build system flake - options: - -h|--help show this help - --host hostname (current host) - -f|--flake path to flake ($FLAKE_PATH or $HOME/oizys) - -c|--cache name of cachix binary cache (daylin) - --no-nom don't use nix-output-monitor +commands: + dry poor man's nix flake check + boot nixos-rebuild boot + switch nixos-rebuild switch + cache build and push to cachix + build build system flake + +options: + -h|--help show this help + --host hostname (current host) + -f|--flake path to flake ($FLAKE_PATH or $HOME/oizys) + -c|--cache name of cachix binary cache (daylin) + --no-nom don't use nix-output-monitor """ @@ -121,7 +122,7 @@ proc runCmd(c: OizysContext, cmd: string) = proc parseFlag(c: var OizysContext, key, val: string) = case key: - of "h","help": + of "h", "help": echo usage; quit 0 of "host": c.host = val