dgtools::argvparse
The snit dgtools::argvparse type is a command line parsing package similar to Pythons argparse spirit.
Example
package require dgtools::argvparse
namespace import dgtools::argvparse
set ap [argvparse %AUTO% -appname "Test Application" -author "Detlef Groth"]
$ap argument -f --filename "<input-filename>" -required true
$ap argument -t --test "test flag" -boolean true
$ap argument -m --mproc "execute function mproc" -script mproc
$ap argument -v --verbosity "number specifiy verbosity" -type integer -default 0
puts [$ap parse $argv]