PDA

View Full Version : program parameters



defmomo
April 3rd, 2008, 09:12 AM
Why do some programs allow the input of parameters only in the begining, like ls:

ls -l -G -F ./
but this isn't allowed:

ls -l -G ./ -F

It would be very easy to add support for this mini-feature, so why is it absent from so many - very used - programs?

nick_h
April 3rd, 2008, 07:31 PM
I don't think the feature would be very useful. Sometimes you might not want input starting with "-" to be interpreted as an option, although you could use a "--" in those cases.