Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc --version fails #11421

Closed
brson opened this issue Jan 9, 2014 · 2 comments · Fixed by #11452
Closed

rustdoc --version fails #11421

brson opened this issue Jan 9, 2014 · 2 comments · Fixed by #11452
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@brson
Copy link
Contributor

brson commented Jan 9, 2014

brian@brian-X1:~/dev/rust4/build$ x86_64-unknown-linux-gnu/stage2/bin/rustdoc --version
task '

' failed at 'called Result::unwrap() on an Err value', /home/brian/dev/rust4/src/libstd/result.rs:189

@eastwood
Copy link
Contributor

I believe I think this is just for any argument, 'rustdoc -t' for example throws same error.
I don't think there is an implemented argument for version or default case

pub fn opts() -> ~[groups::OptGroup] {
    use extra::getopts::groups::*;
    ~[
        optflag("h", "help", "show this help message"),
        optopt("r", "input-format", "the input type of the specified file",
               "[rust|json]"),
        optopt("w", "output-format", "the output type to write",
               "[html|json]"),
        optopt("o", "output", "where to place the output", "PATH"),
        optmulti("L", "library-path", "directory to add to crate search path",
                 "DIR"),
        optmulti("", "cfg", "pass a --cfg to rustc", ""),
        optmulti("", "plugin-path", "directory to load plugins from", "DIR"),
        optmulti("", "passes", "space separated list of passes to also run, a \
                                value of `list` will print available passes",
                 "PASSES"),
        optmulti("", "plugins", "space separated list of plugins to also load",
                 "PLUGINS"),
        optflag("", "no-defaults", "don't run the default passes"),
        optflag("", "test", "run code examples as tests"),
        optmulti("", "test-args", "arguments to pass to the test runner",
                 "ARGS"),
    ]
}

bors added a commit that referenced this issue Jan 10, 2014
@bors bors closed this as completed in 6f875c9 Jan 10, 2014
@alexcrichton
Copy link
Member

Reopening, the actual bug here is that it should support the --version flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants