Skip to content

Command line interface for 2.0 #3739

@topecongiro

Description

@topecongiro

Notes on some ideas for CLI changes in rustfmt 2.0.

Deprecate --backup

This should be done via any version control system.

Add subcommands

Change format-diff/git-rustfmt into rustfmt's subcommands.

Also rustfmt --print-config could be one of subcommands as well instead of being a flag, as it takes multiple arguments.

Add --check to cargo fmt

cargo fmt -- --check is one of the most common usage of rustfmt. Why require an additional --?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions