X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Fconsole;h=8bbe93d6969902eae1fef4dbe3de9a1a3336912f;hb=eddbed031389b302b1f2484296fd2cbb975e7bf1;hp=0c06dbf5a8910dae83af5eec09678d38d311b83b;hpb=7019e2b6f43c429298916877f01b20bb6e370ed2;p=kivitendo-erp.git diff --git a/scripts/console b/scripts/console index 0c06dbf5a..8bbe93d69 100755 --- a/scripts/console +++ b/scripts/console @@ -5,8 +5,11 @@ use strict; use 5.008; # too much magic in here to include perl 5.6 BEGIN { - unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML). - push @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version. + use FindBin; + + unshift(@INC, $FindBin::Bin . '/../modules/override'); # Use our own versions of various modules (e.g. YAML). + push (@INC, $FindBin::Bin . '/..'); + push (@INC, $FindBin::Bin . '/../modules/fallback'); # Only use our own versions of modules if there's no system version. } use Data::Dumper; @@ -288,6 +291,12 @@ Print the manual page and exit. Log in as C. The default is to use the value from the configuration file and C if none is set there. +=item B<-c>, B<--client>=C + +Use the database for client C. C can be a client's +database ID or its name. The default is to use the value from the +configuration file. + =item B<-o>, B<--log-file>=C Use C as the log file. The default is to use the value from