diff options
Diffstat (limited to 'pym/_emerge/main.py')
-rw-r--r-- | pym/_emerge/main.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 3e445b2e8..ac63419c7 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -389,6 +389,7 @@ def insert_optional_args(args): '--jobs' : valid_integers, '--keep-going' : ('n',), '--root-deps' : ('rdeps',), + '--select' : ('n',), '--selective' : ('n',), '--usepkg' : ('n',), '--usepkgonly' : ('n',), @@ -613,6 +614,13 @@ def parse_opts(tmpcmdline, silent=False): "choices" :("True", "rdeps") }, + "--select": { + "help" : "add specified packages to the world set " + \ + "(inverse of --oneshot)", + "type" : "choice", + "choices" : ("True", "n") + }, + "--selective": { "help" : "similar to the --noreplace but does not take " + \ "precedence over options such as --newuse", @@ -704,6 +712,11 @@ def parse_opts(tmpcmdline, silent=False): if myoptions.root_deps == "True": myoptions.root_deps = True + if myoptions.select == "True": + myoptions.oneshot = False + elif myoptions.select == "n": + myoptions.oneshot = True + if myoptions.selective == "True": myoptions.selective = True |