blob: 821aad1eaebd9aa28cd140f438120f38e8375d5f [file] [log] [blame]
aPiecekb5cda5e2023-06-29 11:26:28 +02001source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/ly.tcl" : "ly.tcl"}]
2
3test arg_empty {Missing arguments} {
4 ly_cmd_err "" "missing <string> parameter to process"
5} {}
6
7test arg_wrong {Wrong argument} {
8 ly_cmd_err "-j" "invalid option"
9} {}
10
11test arg_help {Print help} {
12 ly_cmd "-h" "Usage:"
13} {}
14
15test arg_version {Print version} {
16 ly_cmd "-v" "yangre"
17} {}
18
19cleanupTests