I am contemplating two choices regarding the parameter that is followed by its value:
1.
Code: Select all
<cmd> -<param1> -<param2> -<param3> <param3 value>
example:
boot.py -F6 --noreset --F2 500
Code: Select all
<cmd> -<param1> -<param2> -<param3=param3 value>
example:
boot.py -F6 --noreset --F2=500
Code: Select all
mount -t cifs -o username=asdd
But require more elaborate processing.
Second one appears bit less user-friendly, different than convention. But it is easier to process since parameter and its value is lumped together as one word in sys.argv
To make up for "less user-friendliness" I am thinking to publish rock-solid help for each command and its supported parameters.
If I go either way, there is no turning back or turning back will be a major effort, so I wanna ask for opinions.