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

Explicitly specify command names with underscores (continued) #852

Merged
merged 4 commits into from
Apr 3, 2020
Merged

Explicitly specify command names with underscores (continued) #852

merged 4 commits into from
Apr 3, 2020

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Mar 23, 2020

Starting with Click 7.0, the default behavior of a command with underscores will be to replace with dashes.

This is to address the above default behavior change, so that the commands remain the same, extending the work done in #846 to all Click-based SONiC command line utilities.

Resolves #847

More details can be found here: pallets/click#1123

For new subcommands which haven't been included in a release branch yet, use hyphens, as this will be the direction we move in the future. I have also opened an issue to track the eventual transition: #853

config/main.py Outdated Show resolved Hide resolved
config/main.py Outdated Show resolved Hide resolved
config/main.py Outdated Show resolved Hide resolved
debug/main.py Outdated Show resolved Hide resolved
debug/main.py Outdated Show resolved Hide resolved
pddf_fanutil/main.py Outdated Show resolved Hide resolved
@jleveque
Copy link
Contributor Author

Retest this please

@jleveque
Copy link
Contributor Author

jleveque commented Apr 1, 2020

@lguohan: I addressed your comments last week. Please review again.

undebug/main.py Outdated Show resolved Hide resolved
debug/main.py Outdated Show resolved Hide resolved
@lguohan lguohan merged commit 6dffe49 into sonic-net:master Apr 3, 2020
@jleveque jleveque deleted the fix_underscores_click_7 branch April 3, 2020 17:49
@abdosi
Copy link
Contributor

abdosi commented Apr 7, 2020

@jleveque Please Create PR 201911. Cherry-pick is not clean

@jleveque
Copy link
Contributor Author

jleveque commented Apr 7, 2020

@abdosi: Done. 201911 PR here: #868

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

Successfully merging this pull request may close these issues.

The default behavior of a cmd with underscores is replaced with dashes in click 7.0
3 participants