mirror of
https://github.com/daylinmorgan/bbansi.git
synced 2024-11-22 01:10:44 -06:00
refactor: --style
must be defined
This commit is contained in:
parent
f4594287d1
commit
67e00968fb
1 changed files with 6 additions and 4 deletions
|
@ -179,12 +179,14 @@ flags:
|
||||||
case key:
|
case key:
|
||||||
of "help", "h": writeHelp()
|
of "help", "h": writeHelp()
|
||||||
of "version", "v": writeVersion()
|
of "version", "v": writeVersion()
|
||||||
of "style", "s": style = val
|
of "style", "s":
|
||||||
|
if val == "":
|
||||||
|
echo "[red]ERROR[/]: expected value for -s/--style".bb
|
||||||
|
quit(QuitFailure)
|
||||||
|
style = val
|
||||||
of "debug": showDebug = true
|
of "debug": showDebug = true
|
||||||
else:
|
else:
|
||||||
echo bb"[red]ERROR[/]: unexpected option/value -> ", key, ", ", val
|
echo bb"[yellow]warning[/]: unexpected option/value -> ", key, ", ", val
|
||||||
echo "Option and value: ", key, ", ", val
|
|
||||||
|
|
||||||
of cmdArgument:
|
of cmdArgument:
|
||||||
strArgs.add key
|
strArgs.add key
|
||||||
if strArgs.len == 0:
|
if strArgs.len == 0:
|
||||||
|
|
Loading…
Reference in a new issue