env_parallel.*: Mention --session as an option if environment is too long.

This commit is contained in:
Ole Tange 2018-05-24 00:04:28 +02:00
parent 87b9d9fe29
commit e5fc686b3f
10 changed files with 37 additions and 25 deletions

View file

@ -233,9 +233,11 @@ env_parallel() {
else
unset PARALLEL_ENV;
_error "Your environment is too big."
_error "You can try 2 different approaches:"
_error "1. Use --env and only mention the names to copy."
_error "2. Try running this in a clean environment once:"
_error "You can try 3 different approaches:"
_error "1. Run 'env_parallel --session' before you set"
_error " variables or define functions."
_error "2. Use --env and only mention the names to copy."
_error "3. Try running this in a clean environment once:"
_error " env_parallel --record-env"
_error " And then use '--env _'"
_error "For details see: man env_parallel"

View file

@ -263,9 +263,11 @@ env_parallel() {
else
unset PARALLEL_ENV;
_error "Your environment is too big."
_error "You can try 2 different approaches:"
_error "1. Use --env and only mention the names to copy."
_error "2. Try running this in a clean environment once:"
_error "You can try 3 different approaches:"
_error "1. Run 'env_parallel --session' before you set"
_error " variables or define functions."
_error "2. Use --env and only mention the names to copy."
_error "3. Try running this in a clean environment once:"
_error " env_parallel --record-env"
_error " And then use '--env _'"
_error "For details see: man env_parallel"

View file

@ -233,9 +233,11 @@ env_parallel() {
else
unset PARALLEL_ENV;
_error "Your environment is too big."
_error "You can try 2 different approaches:"
_error "1. Use --env and only mention the names to copy."
_error "2. Try running this in a clean environment once:"
_error "You can try 3 different approaches:"
_error "1. Run 'env_parallel --session' before you set"
_error " variables or define functions."
_error "2. Use --env and only mention the names to copy."
_error "3. Try running this in a clean environment once:"
_error " env_parallel --record-env"
_error " And then use '--env _'"
_error "For details see: man env_parallel"

View file

@ -213,9 +213,11 @@ env_parallel() {
else
unset PARALLEL_ENV;
_error "Your environment is too big."
_error "You can try 2 different approaches:"
_error "1. Use --env and only mention the names to copy."
_error "2. Try running this in a clean environment once:"
_error "You can try 3 different approaches:"
_error "1. Run 'env_parallel --session' before you set"
_error " variables or define functions."
_error "2. Use --env and only mention the names to copy."
_error "3. Try running this in a clean environment once:"
_error " env_parallel --record-env"
_error " And then use '--env _'"
_error "For details see: man env_parallel"

View file

@ -234,9 +234,11 @@ env_parallel() {
else
unset PARALLEL_ENV;
_error "Your environment is too big."
_error "You can try 2 different approaches:"
_error "1. Use --env and only mention the names to copy."
_error "2. Try running this in a clean environment once:"
_error "You can try 3 different approaches:"
_error "1. Run 'env_parallel --session' before you set"
_error " variables or define functions."
_error "2. Use --env and only mention the names to copy."
_error "3. Try running this in a clean environment once:"
_error " env_parallel --record-env"
_error " And then use '--env _'"
_error "For details see: man env_parallel"

View file

@ -212,9 +212,11 @@ env_parallel() {
else
unset PARALLEL_ENV;
_error "Your environment is too big."
_error "You can try 2 different approaches:"
_error "1. Use --env and only mention the names to copy."
_error "2. Try running this in a clean environment once:"
_error "You can try 3 different approaches:"
_error "1. Run 'env_parallel --session' before you set"
_error " variables or define functions."
_error "2. Use --env and only mention the names to copy."
_error "3. Try running this in a clean environment once:"
_error " env_parallel --record-env"
_error " And then use '--env _'"
_error "For details see: man env_parallel"

View file

@ -24,7 +24,7 @@
use strict;
use Getopt::Long;
$Global::progname="niceload";
$Global::version = 20180522;
$Global::version = 20180524;
Getopt::Long::Configure("bundling","require_order");
get_options_from_array(\@ARGV) || die_usage();
if($opt::version) {

View file

@ -1450,7 +1450,7 @@ sub check_invalid_option_combinations {
sub init_globals {
# Defaults:
$Global::version = 20180522;
$Global::version = 20180524;
$Global::progname = 'parallel';
$Global::infinity = 2**31;
$Global::debug = 0;

View file

@ -1596,9 +1596,9 @@ it to the command.
Only used with B<--pipe>.
=item B<--results> I<name>
=item B<--results> I<name> (alpha testing)
=item B<--res> I<name>
=item B<--res> I<name> (alpha testing)
Save the output into files.
@ -2035,7 +2035,7 @@ Use the replacement string I<replace-str> instead of B<{#}> for
job sequence number.
=item B<--session> (alpha testing)
=item B<--session> (beta testing)
Record names in current environment in B<$PARALLEL_IGNORED_NAMES> and
exit. Only used with B<env_parallel>. Aliases, functions, and
@ -2330,7 +2330,7 @@ Silent. The job to be run will not be printed. This is the default.
Can be reversed with B<-v>.
=item B<--tty> (alpha testing)
=item B<--tty> (beta testing)
Open terminal tty. If GNU B<parallel> is used for starting a program
that accesses the tty (such as an interactive program) then this

View file

@ -576,7 +576,7 @@ $Global::Initfile && unlink $Global::Initfile;
exit ($err);
sub parse_options {
$Global::version = 20180522;
$Global::version = 20180524;
$Global::progname = 'sql';
# This must be done first as this may exec myself