mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 10:38:33 -04:00
test: Added missing tests.
This commit is contained in:
3
cli.odin
3
cli.odin
@@ -55,8 +55,7 @@ COMMANDS := []CommandInfo {
|
||||
},
|
||||
}
|
||||
|
||||
parse_args :: proc() -> (cmd: Command, ok: bool) {
|
||||
args := os.args
|
||||
parse_args :: proc(args: []string) -> (cmd: Command, ok: bool) {
|
||||
if len(args) < 2 || args[1] == "--help" || args[1] == "-h" {
|
||||
print_usage()
|
||||
return Command{}, false
|
||||
|
||||
Reference in New Issue
Block a user