Skip to content

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

Merged
jleveque merged 1 commit intosonic-net:201911from
jleveque:fix_underscores_click_7_201911
Apr 8, 2020
Merged

[201911] Explicitly specify command names with underscores (continued)#868
jleveque merged 1 commit intosonic-net:201911from
jleveque:fix_underscores_click_7_201911

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