Switches contains all the command line switch settings:
All switches are optional.
The numeric-index switch should only be used when a filename has multiple numbers in it, e.g. 01-file01.html. This switch defaults to -1 which is the last number in the filename. Specifying the index as 1 will force the script to increment the first set of numbers. Specifying the index as 2 will force the script to increment the second set of numbers (which is redundant since the last set of numbers is the default anyway). Again, you get enough rope to hang yourself so don't use an index higher than the number of numbers in the file name.
The precision switch controls how many zeros are prepended to 'short' numbers, i.e. should the first file be file1.html, file01.html, file001.html, etc. For default values, the script first looks at the precision of min if it's present, then max. If neither value is specified, the script defaults to the precision in the input URI, meaning if you use the filename file23.html you'll get two digits of precision whether you want them or not.
The reverse switch simply prints out the list of URIs in order from max to min rather than from min to max.
The verbose switch turns on some basic warnings such as the detected precision and whether or not the min and max values were swapped.
--
Grant me the wisdom to shut my mouth when I don't know what I'm talking about.
In reply to Re^2: Specific instance of a repeated string
by Ionizor
in thread Specific instance of a repeated string
by Ionizor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |