| 1 |
#%Module |
| 2 |
if {[info exists env(TESTSUITE_HELP)]} { |
| 3 |
switch -- $env(TESTSUITE_HELP) { |
| 4 |
one_string { |
| 5 |
module-help {multi word string} |
| 6 |
} |
| 7 |
multi_arg { |
| 8 |
module-help multi word string |
| 9 |
} |
| 10 |
multi_cmd1 { |
| 11 |
module-help {one help line} |
| 12 |
module-help {another help line} |
| 13 |
} |
| 14 |
multi_cmd2 { |
| 15 |
module-help {one help line} |
| 16 |
module-help {} |
| 17 |
module-help {another help line} |
| 18 |
module-help {} |
| 19 |
} |
| 20 |
empty_line { |
| 21 |
module-help {} |
| 22 |
} |
| 23 |
multi_empty_line { |
| 24 |
module-help {} |
| 25 |
module-help {} |
| 26 |
} |
| 27 |
with_help_proc1 { |
| 28 |
module-help {one help line} |
| 29 |
module-help {another help line} |
| 30 |
proc ModulesHelp {} { |
| 31 |
puts stderr {help line from proc} |
| 32 |
} |
| 33 |
} |
| 34 |
with_help_proc2 { |
| 35 |
proc ModulesHelp {} { |
| 36 |
puts stderr {help line from proc} |
| 37 |
} |
| 38 |
module-help {one help line} |
| 39 |
module-help {another help line} |
| 40 |
} |
| 41 |
get_help_lines1 { |
| 42 |
module-help {one help line} |
| 43 |
module-help {another help line} |
| 44 |
puts stderr [join [getModuleHelpLines]] |
| 45 |
} |
| 46 |
get_help_lines2 { |
| 47 |
puts stderr [join [getModuleHelpLines]] |
| 48 |
} |
| 49 |
} |
| 50 |
} |