Closed klauern closed 12 years ago
Also an issue is that even from the command-line it says
[warn]: Unrecognized/invalid option: --list-undoc
but does it anyway, so that could be the crux of the issue and my Rake issues are just a symptom.
--list-undoc
is an option for the yard stats
command, which is not used by the YARD task. You could run the yard stats task manually with:
YARD::CLI::Stats.run('--list-undoc')
The reason this works in the command-line is kind of a quirk in the way options are parsed-- Stats.run(*args)
is effectively called on the commandline string when you use yardoc
from the CLI, so it picks up the option later.. I wouldn't recommend doing it this way.
I'm closing this ticket because the Stats command should be used instead of the YardocTask, which runs the Yardoc command. Thanks for pointing out the quirk though, at some point we might fix the way CLI parses to deal with this oddity.
Excellent. Thanks for the pointer. So does that make yard --list-undoc
a bug then?
As I mentioned, it's a quirk in the command line parsing-- let's call it "unsupported behaviour" for now-- or a known limitation.
If I have this in my Rakefile:
and try to run the
rake yard
task:I get nothing from
--list-undoc
. I can get it to work just fine from the command line