Skip to content

Conversation

@AllyW
Copy link
Contributor

@AllyW AllyW commented Jun 1, 2023

skip_applicability triggers the ArgumentsContext to parse and merge arguments' kwargs from various sources. If not settled, arguments' kwargs is based on the cmd's customization function (don't know what's this action's purpose but its impact is what it is).

In this issue, because parameter show_auth_for_sdk or show_auth_in_json is parsed from its customization function, without its ArgumentsContext configured options_list, so they are marked as different parameter.

After set skip_applicability=True, options_list is used to binding these two parameters and current azdev command-change meta-diff tool can comprehend that [--sdk-auth] is included in [--sdk-auth, --json-auth] and can be reviewed as the same parameter for users (see https://github.com/AllyW/azure-cli-dev-tools/blob/4dd3939b84ab0b7f744837d1e6bab3776731cbbb/azdev/operations/command_change/custom.py#L176), therefore this issue is fixed.

@AllyW
Copy link
Contributor Author

AllyW commented Jun 1, 2023

image

@AllyW
Copy link
Contributor Author

AllyW commented Jun 1, 2023

image

@AllyW AllyW self-assigned this Jun 1, 2023
@AllyW AllyW requested review from jiasli and kairu-ms June 1, 2023 09:04
@AllyW AllyW merged commit 7d01d13 into Azure:dev Jun 2, 2023
RenSilvaAU pushed a commit to RenSilvaAU/azure-cli-dev-tools that referenced this pull request Aug 7, 2025
…n-issue

Uninherited read-only flag for CMDClsSchemaBase code generation
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.

3 participants