mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
remove level of help indentation
This commit is contained in:
parent
c76de83a18
commit
db30869eea
1 changed files with 14 additions and 13 deletions
|
@ -90,19 +90,20 @@ proc switch(c: OizysContext) =
|
||||||
|
|
||||||
const usage = """
|
const usage = """
|
||||||
oizys <cmd> [opts]
|
oizys <cmd> [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:
|
commands:
|
||||||
-h|--help show this help
|
dry poor man's nix flake check
|
||||||
--host hostname (current host)
|
boot nixos-rebuild boot
|
||||||
-f|--flake path to flake ($FLAKE_PATH or $HOME/oizys)
|
switch nixos-rebuild switch
|
||||||
-c|--cache name of cachix binary cache (daylin)
|
cache build and push to cachix
|
||||||
--no-nom don't use nix-output-monitor
|
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) =
|
proc parseFlag(c: var OizysContext, key, val: string) =
|
||||||
case key:
|
case key:
|
||||||
of "h","help":
|
of "h", "help":
|
||||||
echo usage; quit 0
|
echo usage; quit 0
|
||||||
of "host":
|
of "host":
|
||||||
c.host = val
|
c.host = val
|
||||||
|
|
Loading…
Reference in a new issue