I believe the original question is actually "If two or more short (one letter) options are given together with one dash (-aD), does Application.HasOption handle them same as if both of them are given separately (-a -D)", right?
If so, this wiki article does not answer it.
So, vfclist, would you please try experimenting it in your application and tell us here about your findings (and it would be nice to update the wiki to give clear answer for this).
This is some description from the wiki.
With TCustomApplication you can access parameters by name. For example your program should print a help text when the user gave the common help parameter -h. The -h is a short option. The long form is the --help. To test whether the user called the program with -h or --help you can use
My question is whether the short form option can use 2 characters. For instance let's say I want to archive some files with an utility, the long form of the directory being
--archive-directory=/somedir, can I use
-ad somedir for the short option, rather than
--ad /somedir ? It seems to me that the long option prefixed with
-- is meant to be plain unabbreviated descriptions seperated by dashes, so to use
--ad for an abbreviated form doesn't seem to make sense.
-a and
-d may already be in use for other options so to use
-ad to represent
--archive-directory will be wrong.
In summary the question is whether it is possible to use a single dash prefix to represent an option without the library code expanding it into the separate short options its characters are made of, ie treat
-abc as a separate option
abc rather than as
-a -b -c.