Skip to content

Feature request: flag to print all input files #6792

@bravely-beep

Description

@bravely-beep

I'm writing a drop-in replacement/wrapper for rustfmt, and I need to be able to extract the list of all files that were passed. This is hard to do in a version-stable way: I could extract all positional arguments by filtering out all conditional arguments, but future updates to rustfmt might add more optional arguments with an unknown syntax that would break this logic.

The simplest solution would be to have a flag on rustfmt (e.g. --passthrough-filenames) that simply prints the provided list of input files without doing anything else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-lowLow priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions