Hey there,
Thanks for the good luck. I can always use it
For the first part - dealing with your command line arguments, there are three built-in variables that you can access to help you with that:
$argc <-- This variables value will tell you how many arguments were passed to your script
$argv <-- This variable stores a list of your command line arguments (to be used for your second part)
$argv0 <-- This variable stores the command name, and not the arguments, just in case you need that.
For your second part, figuring out the length of all your individual command line arguments - I'm going to assume by "input limitation" that the arguments can only be a certain number of characters in length and pick an arbitrary length of 5 characters - you can just iterate through the $argv variable like:
foreach entry $argv {
if { [string length $entry] <= 5 } {
"do whatever you would do if the argument length is okay" <-- whatever code you need to execute
} else {
puts "argument $entry is too long - please shorten to 5 characters"
}
and that's pretty much it.
Hope that helps
, laum