[Rt-commit] r19427 - rt/3.8/trunk/bin
ruz at bestpractical.com
ruz at bestpractical.com
Mon May 4 16:55:38 EDT 2009
Author: ruz
Date: Mon May 4 16:55:38 2009
New Revision: 19427
Modified:
rt/3.8/trunk/bin/rt-crontool.in
Log:
* show requested help even if there is no current user,
then whin about current user then about missing arguments
Modified: rt/3.8/trunk/bin/rt-crontool.in
==============================================================================
--- rt/3.8/trunk/bin/rt-crontool.in (original)
+++ rt/3.8/trunk/bin/rt-crontool.in Mon May 4 16:55:38 2009
@@ -113,12 +113,16 @@
#Get the current user all loaded
my $CurrentUser = GetCurrentUser();
+
+# show help even if there is no current user
+help() if $help;
+
unless ( $CurrentUser->Id ) {
print loc("No RT user found. Please consult your RT administrator.\n");
exit(1);
}
-help() if $help or not $search or not $action;
+help() unless $search && $action;
$transaction = lc( $transaction||'' );
if ( $transaction && $transaction !~ /^(first|all|last)$/i ) {
More information about the Rt-commit
mailing list