java - Are there any naming conventions for command line arguments? -


am reviewing command line driven java application command line switches in lower camel case this:

myapp aswitch anotherswitch athirdswitch 

am thinking lower case , leading hyphens may preferable:

myapp -aswitch -anotherswitch -athirdswitch 

...or perhaps:

myapp -a-switch -another-switch -a-third-switch 

but struggling come compelling justification. follow current conventions , cross-platform compatible @ least windows/linux.

grateful advice on commonly used convention out of these 3 - , reasons this.

apache commons cli has description of commonly used convention. parser such use cases


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -