aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-08-15 12:15:37 -0700
committerZac Medico <zmedico@gentoo.org>2020-08-16 20:48:15 -0700
commit8ad29c19c1a3ac8529c5c78534769d2771964bcb (patch)
tree97f59cdcb67c0f3ed588c217db746936517df0b5 /lib/_emerge
parentemerge: Remove deprecated --changelog option (bug 699256) (diff)
downloadportage-8ad29c19c1a3ac8529c5c78534769d2771964bcb.tar.gz
portage-8ad29c19c1a3ac8529c5c78534769d2771964bcb.tar.bz2
portage-8ad29c19c1a3ac8529c5c78534769d2771964bcb.zip
emerge: Add short -l option for --load-average (bug 699256)
Add a short -l option for --load-average just like make(1) has. Bug: https://bugs.gentoo.org/699256 Reviewed-by: Brian Dolbec <dolsen@gentoo.org> Reviewed-by: Matt Turner <mattst88@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge')
-rw-r--r--lib/_emerge/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/_emerge/main.py b/lib/_emerge/main.py
index 5aac451fe..975738762 100644
--- a/lib/_emerge/main.py
+++ b/lib/_emerge/main.py
@@ -171,6 +171,7 @@ def insert_optional_args(args):
short_arg_opts = {
'D' : valid_integers,
'j' : valid_integers,
+ 'l' : valid_floats,
}
# Don't make things like "-kn" expand to "-k n"
@@ -542,6 +543,7 @@ def parse_opts(tmpcmdline, silent=False):
},
"--load-average": {
+ "shortopt" : "-l",
"help" :"Specifies that no new builds should be started " + \
"if there are other builds running and the load average " + \