Quote:
Originally Posted by shotsky
I take it then, that no spaces are used between options. The problem I have is that it is not clear how to separate options, what tags start new options. I can't believe how many things I tried that didn't work. Maybe the software could detect an attempt at something such as -'input-default' and either suggest the correct format, or just USE it and do the correct thing? Software that simply refuses to funtion, or tells you 'you are stupid, you did it wrong' without telling you what is right, is just a waste. I have spent many hours trying to figure out the secret to command lines, when it would have been so simple to document it in the first place, and even easier to recognize correct commands with incorrect leadins or separations and either do the right thing, or tell the user what the hell is wrong.
John
|
1 space between each option (switch), 1 space to the first argument after the switch, commas with no space for additional values.
quote each argument value with spaces: "two words","three small words",word
pretty much common CLI (MSDOS uses a colon after the switch that has values
Code:
xcopy /EXCLUDE:file1[+file2][+file3]
and chains them with a +)