title: Command line parsing in Tcl
body: <p>I have a script that will require many short and long options and was wondering what would be the most efficient way to parse the command line arguments. Using for-each and if-else would make the code too long and difficult to modify, so is there be any standard function that can help me (something like getopt for C)?</p>