From: Zac Medico Date: Sat, 29 Dec 2012 22:34:42 +0000 (-0800) Subject: emerge --select: add -w short option X-Git-Tag: v2.2.0_alpha150~74 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84139803585a9a415c6f94c765dadcdeb7592915;p=portage.git emerge --select: add -w short option --- diff --git a/man/emerge.1 b/man/emerge.1 index 356bb930d..0807a4b23 100644 --- a/man/emerge.1 +++ b/man/emerge.1 @@ -726,7 +726,7 @@ If ebuilds using EAPIs which \fIdo not\fR support \fBHDEPEND\fR are built in the same \fBemerge\fR run as those using EAPIs which \fIdo\fR support \fBHDEPEND\fR, this option affects only the former. .TP -.BR "\-\-select [ y | n ]" +.BR "\-\-select [ y | n ] (\-w short option)" Add specified packages to the world set (inverse of \fB\-\-oneshot\fR). This is useful if you want to use \fBEMERGE_DEFAULT_OPTS\fR to make diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py index a0d28702e..69f650518 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -1,4 +1,4 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -13,7 +13,7 @@ def help(): print(" "+turquoise("emerge")+" < "+turquoise("--sync")+" | "+turquoise("--metadata")+" | "+turquoise("--info")+" >") print(" "+turquoise("emerge")+" "+turquoise("--resume")+" [ "+green("--pretend")+" | "+green("--ask")+" | "+green("--skipfirst")+" ]") print(" "+turquoise("emerge")+" "+turquoise("--help")+" [ "+green("--verbose")+" ] ") - print(bold("Options:")+" "+green("-")+"["+green("abBcCdDefgGhjkKlnNoOpPqrsStuvV")+"]") + print(bold("Options:")+" "+green("-")+"["+green("abBcCdDefgGhjkKlnNoOpPqrsStuvVw")+"]") print(" [ " + green("--color")+" < " + turquoise("y") + " | "+ turquoise("n")+" > ] [ "+green("--columns")+" ]") print(" [ "+green("--complete-graph")+" ] [ "+green("--deep")+" ]") print(" [ "+green("--jobs") + " " + turquoise("JOBS")+" ] [ "+green("--keep-going")+" ] [ " + green("--load-average")+" " + turquoise("LOAD") + " ]") diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 6223a137d..96d6a1600 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -169,6 +169,7 @@ def insert_optional_args(args): 'K' : y_or_n, 'q' : y_or_n, 'v' : y_or_n, + 'w' : y_or_n, } arg_stack = args[:] @@ -608,6 +609,7 @@ def parse_opts(tmpcmdline, silent=False): }, "--select": { + "shortopt" : "-w", "help" : "add specified packages to the world set " + \ "(inverse of --oneshot)", "type" : "choice",