简体   繁体   中英

How can I force the default answer to all cpan questions?

Is there some --assume-default option to use similar to the --assume-yes in apt-get (see: https://askubuntu.com/questions/672892/ ).

When installing a module with cpan or many modules from an "autobundle" (see: How do I re-install a cpan-autobundle ) it would be convenient to be able to use the default answer always instead of watching the install and occasionally hit the return-key on my keyboard.

I would like commands like this:

cpan --assume-default MyNewModule

or:

ASSUME=default perl -MCPAN -e 'install Bundle::Snapshot_2017_11_30_00'
PERL_MM_USE_DEFAULT=1 

使兼容模块选择默认值而不是询问。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM