gui journal fix

This commit is contained in:
SJ
2014-05-21 15:41:49 +02:00
parent df623c3680
commit 344fe59e9f
2 changed files with 15 additions and 6 deletions

View File

@ -27,6 +27,10 @@ if($options = getopt($opts, $lopts)) {
}
}
else {
display_help();
exit;
}
@ -100,4 +104,15 @@ function poll_imap_accounts() {
}
function display_help() {
$phpself = basename(__FILE__);
echo("\nUsage: $phpself --webui [PATH] [OPTIONS...]\n\n");
echo("\t--webui=\"[REQUIRED: path to the Piler WebUI Directory]\"\n\n");
echo("options:\n");
echo("\t-d Daemonize the imap polling\n");
echo("\t-h Prints this help screen and exits\n");
}
?>