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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -