I have noticed that some programs work differently when the flags are used before the input parameters, rather than adding the flags at the end. So I want to know, what is the conventionally accepted way to order parameters and flags in an Ubuntu CLI program.
I'm specifically asking about Ubuntu as this is my platform of concern. I understand that this depends on the program being run, but what is the norm?
Eg:
./myprog -d file.txt
Vs
./myprog file.txt -d