diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-29 12:05:43 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-29 12:05:43 +0000 |
commit | d85aa8088a5cd4bc27b7d2d568242e5c84a758a0 (patch) | |
tree | 9ae2c3668bd46ada351a358bab22b5a32a4aee94 /man/emerge.1 | |
parent | 428efdb7ac7592f3e6f57bf390bc76ff9bb8c88f (diff) | |
download | portage-d85aa8088a5cd4bc27b7d2d568242e5c84a758a0.tar.gz portage-d85aa8088a5cd4bc27b7d2d568242e5c84a758a0.tar.bz2 portage-d85aa8088a5cd4bc27b7d2d568242e5c84a758a0.zip |
Add support for the --jobs option to be specified without an
argument, and also support -j as a short option. Since optparse
doesn't natively support options with non-required args, create an
insert_optional_args() function that inserts the required argument
into the args so that optparse is happy. The function inserts the
string True as a substitute for the argument that is required. This
string is later converted to the True constant when stored in
the emerge opts dict (similar to how normal boolean options are
stored). The PollScheduler and SequentialTaskQueue classes recognize
the meaning of the True constant to mean unlimited concurrent jobs.
svn path=/main/trunk/; revision=11261
Diffstat (limited to 'man/emerge.1')
-rw-r--r-- | man/emerge.1 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/man/emerge.1 b/man/emerge.1 index 59d335f62..e252c19b1 100644 --- a/man/emerge.1 +++ b/man/emerge.1 @@ -323,9 +323,10 @@ directory. .BR "\-\-ignore-default-opts" Causes \fIEMERGE_DEFAULT_OPTS\fR (see \fBmake.conf\fR(5)) to be ignored. .TP -.BR \-\-jobs=JOBS -Specifies the number of packages to build simultaneously. Also see -the related \fB\-\-load\-average\fR option. +.BR "-j [JOBS], \-\-jobs[=JOBS]" +Specifies the number of packages to build simultaneously. If this option is +given without an argument, emerge will not limit the number of jobs that can +run simultaneously. Also see the related \fB\-\-load\-average\fR option. .TP .BR "\-\-keep\-going" Continue as much as possible after an error. When an error occurs, |