Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mesh
meshmap
Commits
ebadc3de
Commit
ebadc3de
authored
Apr 14, 2018
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/get-map-info.php
View file @
ebadc3de
...
...
@@ -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
]
.
"
\t
This help message
\n
"
;
echo
"--test-mode-node-sql
\t
DO NOT access database only output to screen
\n
"
;
echo
"(useful to make sure everything is working)
\n
"
;
echo
"--test-mode-with-sql
\t
DO 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"
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment