steveklabnik / rustdoc

Not a real thing, see https://github.com/rust-lang/rust for rustdoc's actual source code
https://github.com/rust-lang/rust
104 stars 22 forks source link

Create flag-compatible infrastructure #215

Closed hjr3 closed 6 years ago

hjr3 commented 6 years ago

Adds infrastructure to become flag-compatible with existing rustdoc. There are a few general buckets a flag falls into:

  1. Flag stays the same
  2. Flag is no longer supported in the new rustdoc
  3. Flag has moved (usually under a subcommand)

Most flags have still not been implemented and they will say so. Also, some flags are in a limbo state where they are probably going to be unsupported in the future. Until that decision has been declared, they are marked as unimplemented.

BREAKING: This change moves -o from open flag to output flag.

hjr3 commented 6 years ago

I spent some time thinking of a way to not have to declare the unsupported options and then have a separate list to check against them again. Everything I came up with added too much complexity to be worth it. If someone has an idea, I am all for it.

steveklabnik commented 6 years ago

Thanks! I can't give a real review until tomorrow, but this is failing due to lack of rustfmt.

hjr3 commented 6 years ago

Hmm, I did not think the long strings would fail rustfmt. If I wrap them, it messes up the usage output. I will figure this out in a bit.

steveklabnik commented 6 years ago

I re-did the formatting for you. Thanks!