Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db: Change command-line options to be more UNIXy #3

Open
CarolineM opened this issue Jan 25, 2013 · 1 comment
Open

db: Change command-line options to be more UNIXy #3

CarolineM opened this issue Jan 25, 2013 · 1 comment

Comments

@CarolineM
Copy link
Member

The standard GNU style for command line arguments is to have long options be a word, or hyphen-separated words prefixed with two dashes, and short options be a single character prefixed with a single dash.

Here are my proposed new options:

-c, --commit The commit SHA1
-b, --branch The name of the Git branch
-r, --repo The Git repository
-p, --p2-version The P2 version
-m, --maven-version The Maven version
--project The project

@dlh3
Copy link

dlh3 commented Apr 5, 2013

Consider using Apache commons-cli for the argument parsing. Though v1.3 is still snapshot, it's worth using. The API is much better with v1.3 than v1.2.

Used this recently, it makes defining and parsing arguments with both short- (-c) and long-forms (--commit) much easier than a homebrew approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants