Subject: | Make "cpan install Some::Module" do what people mean |
I could not count the number of times I've seem someone do
Show quoted text
> cpan install Module::Name
What happens, of course, is that because some random distribution called
"junoscript" happens to have an "install" module in it, that command
installs junoscript first, THEN the module you actually want.
This gets bad if the junoscript installation fails, because then people
are left with what they incorrectly think that the module they want has
failed.
I think this gotcha comes about because people do
Show quoted textcpan> install Module::Name
in the shell, and so just assume that they can
Show quoted text> cpan install Module::Name
Now, we could always warn, but as the Ruby people say, if you are smart
enough to warn, you are smart enough to Do The Right Thing.
So I think we should make the following possible.
If you pass 2 or more params to the cpan console application, and the
first one is "install" (and possible also other command names) then
"install" is taken to mean "-i".
So install the ACTUAL "install" module you could continue to do
Show quoted text> cpan install
As normal, or
Show quoted text> cpan install install
would also work.
I think this will just make live more sane for the general userbase, who
I often see make that mistake.
I'd be happy to implement it for you if needed.