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

[201911] Explicitly specify command names with underscores (continued) #868

Merged
merged 1 commit into from
Apr 8, 2020
Merged

[201911] Explicitly specify command names with underscores (continued) #868

merged 1 commit into from
Apr 8, 2020

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Apr 7, 2020

Backport of #852 to the 201911 branch

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

@jleveque
Copy link
Contributor Author

jleveque commented Apr 7, 2020

Retest this please

2 similar comments
@jleveque
Copy link
Contributor Author

jleveque commented Apr 8, 2020

Retest this please

@jleveque
Copy link
Contributor Author

jleveque commented Apr 8, 2020

Retest this please

@jleveque jleveque merged commit b014f7f into sonic-net:201911 Apr 8, 2020
@jleveque jleveque deleted the fix_underscores_click_7_201911 branch April 8, 2020 17:04
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
 [201911] Explicitly specify command names with underscores (continued)
(sonic-net#868)
[fwutil]: Update Command-Reference.md. (sonic-net#876)
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.

2 participants