Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Argument Clinic: add --dry-run and --diff options #155207

Description

@serhiy-storchaka

Feature or enhancement

Argument Clinic can only rewrite files in place. To see what a change to a clinic block or to the generator itself produces, you have to let it modify the working tree and then look at git diff.

I propose two options, one of the ideas listed in #108643:

  • --dry-run -- parse everything as usual, but write nothing and list the files which would be changed.
  • --diff -- the same, but write a unified diff of the changes to the standard output, so that it can be reviewed or applied with patch -p0.

Both work with --make, so --dry-run --make --srcdir . tells whether any generated file is stale.

Linked PRs

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixestopic-argument-clinictype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions