[slebetman]: [optproc] proc allows you to define procs where the syntax for arguments behave like "'''op'''tions". Like what we often see in Tk. After the umpteenth time writing/using argument parsers to do this I thought there ought to be a better, more natural way: proc optproc {name args script} { proc $name args [ string map [list ARGS $args SCRIPT $script] { foreach var {ARGS} { set [lindex $var 0] [lindex $var 1] } foreach {var val} $args { set [string trim $var -] $val } SCRIPT } ] } The syntax is similar to [proc] except that when calling procs defined by [optproc] the arguments need to be accompanied by their name. Also when calling the created procedure the order of arguments doesn't matter. Default values for arguments are defined just like default values in [proc]. If no default is defined then the argument's value defaults to an empty string.