It depends on your taste.
The Unix convention is that teams have 2 forms: long and short (one character). To indicate the long form, we use two dashes -. For example --install . The short form is marked with a single dash, for example. -i .
But there are no rules without exceptions. For example, the java command-line option does not follow this convention: -cp and -classpath mean the same thing, and both are marked with only one dash. -version does not have short aliases, etc.
Slashes are used in Windows applications.
As a Java developer, I prefer to use platform-independent conventions (dashes). In addition, various libraries (for example, cli from the jakarta project) support dashes, so they are easier to implement.
Alexr source share