You have two answers pointing to "require_order", but I think that both of these answers do not understand what "require_order" does and what you are looking for.
If "require_order" is not set, you can write (on the command line):
-a file -b
If both the -a and -b options are simple options (without taking an argument). With a require_order setting, the presence of a file completes the parameters, and the -b flag becomes a file name.
, , , '-a' '' -b '. , Getopt:: Long . , Getopt:: *, ( , , Getopt:: JLSS, ). [ , Gmail, .]