Commit ebadc3de authored by Eric - kg6wxc's avatar Eric - kg6wxc
Browse files

added --help ability to get-map-info.php

you can actually use --help, --h, -help, -h, /?, or ? to get the usage
info now.
parent 72192d29
......@@ -45,6 +45,16 @@ require $INCLUDE_DIR . "/scripts/wxc_functions.inc";
/***********************************************************************
*DO NOT CHANGE ANYTHING BELOW HERE UNLESS YOU KNOW WHAT YOU ARE DOING!!!!
************************************************************************/
if ($argv[1] == ("--help" || "--h" || "-help" || "-h" || "/?" || "?")) {
echo $argv[0] . " Usage:\n\n";
echo $argv[1] . "\tThis help message\n";
echo "--test-mode-node-sql\tDO NOT access database only output to screen\n";
echo "(useful to make sure everything is working)\n";
echo "--test-mode-with-sql\tDO access the database AND output to screen\n";
echo "(useful to see if everything is working and there are no errors reading/writing to the database)\n";
echo "\n";
exit();
}
$TEST_MODE_NO_SQL = 0;
$TEST_MODE_WITH_SQL = 0;
if ($argv[1] == "--test-mode-no-sql") {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment