Tclmain 0.2.1
This is a little Tcl script whch allows you to run Tcl files or the main procedure from your package from within your package directory without placing them into a folder belonging to your PATH variable. This is similar to the Python approach "python -m modulename arguments
. Either a file packagename_main.tcl or a possible procedure packagename::main will be called if the script is executed like this:
tclmain -m packagename
Example
If you have the package hyperhelp is installed you can load an hyperhelp file like this:
tclmain -m hyperhelp path-to-help.md
Installation
Download the script file to a folder belonging to your PATH and make it executable:
$ wget https://github.com/mittelmark/tclmain/releases/download/v0.2.1/tclmain -O ~/.local/bin/tclmain
$ chmod 755 ~/.local/bin/tclmain
$ tclmain --version
tclmain version: 0.2.1
Note
This release was tested with Tcl 9 and seems to work with Tcl 8.6 and Tcl 9.0.