Skip to content

cargo-rustdoc: error: too many file operands when experimental feature -w is passed without parameters #132718

Open
@NovaliX-Dev

Description

@NovaliX-Dev

When i try to run this command : cargo +nightly rustdoc -- -Z unstable-options -w

Rustdoc returns this error :

error: too many file operands

Which confuses me. I mean, i didn't passed any file format, so how can there be too many of them ?

We should have a clearer error, something like this :

error: no output format given after `-w`

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: Command-line interface (CLI) to the compilerA-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.D-incorrectDiagnostics: A diagnostic that is giving misleading or incorrect information.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions