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

Change cli arguments parser to kingpin, add short commands #51

Closed

Conversation

sponomarev
Copy link
Contributor

Closes #49

Copy link
Owner

@qustavo qustavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since flags are changed, you'll need to update README.md as well
Nice job!

cors bool
config = kingpin.Flag("config", "Specifies custom config path.").Short('c').String()
cors = kingpin.Flag("cors", "Enable CORS").Default("false").Bool()
port = kingpin.Flag("port", "Specifies the port where HTTPLab will bind to.").Default("false").Default("10080").Int()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can u add .Short('p') here?

config = kingpin.Flag("config", "Specifies custom config path.").Short('c').String()
cors = kingpin.Flag("cors", "Enable CORS").Default("false").Bool()
port = kingpin.Flag("port", "Specifies the port where HTTPLab will bind to.").Default("false").Default("10080").Int()
bindings = kingpin.Flag("bindings", "Show keyboard bindings").Bool()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we keep -h for this one?

@sponomarev
Copy link
Contributor Author

@gchaincl Done! Please, take a look!

@qustavo
Copy link
Owner

qustavo commented Oct 2, 2017

@sponomarev thanks for this, but I'm closing this in favour of #50, it kept the original behavior which was to display the bindings information along the help.

@qustavo qustavo closed this Oct 2, 2017
@sponomarev sponomarev deleted the feature/short-cli-commands branch October 2, 2017 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants