On the command line you pass the option -dir with a value 'thumb'. In the code, GetOptions is called with a reference \$out_dir to the variable $out_dir. This function sets the variable to the value passed on the command line, i.e. 'thumb'.
So mkdir makes the specified directory 'thumb' since the default value 'icons' has been overriden.
Hope this helps, -gjb-
In reply to Re: Questions about command line script
by gjb
in thread Questions about command line script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |