mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -06:00
use -h for help
This commit is contained in:
parent
98fa6387ac
commit
a60746c374
1 changed files with 4 additions and 4 deletions
|
@ -87,8 +87,8 @@ oizys <cmd> [opts]
|
||||||
build build system flake
|
build build system flake
|
||||||
|
|
||||||
options:
|
options:
|
||||||
--help > show this help
|
-h|--help > show this help
|
||||||
-h|--host > hostname (current host)
|
--host > hostname (current host)
|
||||||
-f|--flake > path to flake ($FLAKE_PATH or $HOME/styx)
|
-f|--flake > path to flake ($FLAKE_PATH or $HOME/styx)
|
||||||
-c|--cache > name of cachix binary cache (daylin)
|
-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) =
|
proc parseFlag(c: var OizysContext, key, val: string) =
|
||||||
case key:
|
case key:
|
||||||
of "help":
|
of "h","help":
|
||||||
echo usage; quit 0
|
echo usage; quit 0
|
||||||
of "h", "host":
|
of "host":
|
||||||
c.host = val
|
c.host = val
|
||||||
of "f", "flake":
|
of "f", "flake":
|
||||||
c.flake = val
|
c.flake = val
|
||||||
|
|
Loading…
Reference in a new issue