On systems such as Linux, there is an agreement that parameters that are complete words use two hyphens (for example, --file ), and single-letter options use one dash (for example, -f .)
Using a slash to enter parameters comes from the old DOS and is stored in Windows.
In addition, if an option uses a whole word, it cannot be divided into several parameters. This applies to your example with -file : -file can be either one or four different options ( -f , -i , -l and -e ).
In general, how the parameters look or are processed varies greatly between programs, and there really is no specific standard.
I suggest you find some way that you like and then use it.
source share