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

Allow snake-case-normalised command aliases. #93

Merged
merged 1 commit into from Jan 6, 2020

Conversation

AdamHillier
Copy link
Contributor

No description provided.

@AdamHillier AdamHillier added the feature New feature or request label Jan 6, 2020
Comment on lines +22 to +26
assert runner.invoke(cli, ["test_task", "a=5"]).exit_code == 0
assert runner.invoke(cli, ["TestTask", "a=5"]).exit_code == 0
assert runner.invoke(cli, ["Test_Task", "a=5"]).exit_code == 0
assert runner.invoke(cli, ["testTask", "a=5"]).exit_code == 0
assert runner.invoke(cli, ["NotTestTask", "a=5"]).exit_code != 0
Copy link
Member

Choose a reason for hiding this comment

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

I'd be fine with only supporting the proper camel case naming, but I think this is nice for usability. I can never remember if a CLI accepts snake case, camel case or something else...

@lgeiger lgeiger merged commit 2068f05 into larq:master Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants