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
15b0f066
Commit
15b0f066
authored
Apr 14, 2018
by
Eric - kg6wxc
Browse files
fixing issue with get-map-info --help (I hope)
parent
f2b982fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/get-map-info.php
View file @
15b0f066
...
...
@@ -49,7 +49,11 @@ 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"
||
"/?"
||
"?"
))
{
$script_arg
=
""
;
if
(
isset
(
$argv
[
1
]))
{
$script_arg
=
$argv
[
1
];
}
if
(
$script_arg
==
"--help"
||
$script_arg
==
"--h"
||
$script_arg
==
"-help"
||
$script_arg
==
"-h"
||
$script_arg
==
"/?"
||
$script_arg
==
"?"
)
{
echo
$argv
[
0
]
.
" Usage:
\n\n
"
;
echo
$argv
[
1
]
.
"
\t
This help message
\n\n
"
;
echo
"--test-mode-no-sql
\t
DO NOT access database only output to screen
\n
"
;
...
...
@@ -62,11 +66,11 @@ if ($argv[1] == ("--help" || "--h" || "-help" || "-h" || "/?" || "?")) {
}
$TEST_MODE_NO_SQL
=
0
;
$TEST_MODE_WITH_SQL
=
0
;
if
(
$
argv
[
1
]
==
"--test-mode-no-sql"
)
{
if
(
$
script_arg
==
"--test-mode-no-sql"
)
{
//output only to console, nothing saved. (great to just see what it does)
$TEST_MODE_NO_SQL
=
1
;
}
if
(
$
argv
[
1
]
==
"--test-mode-with-sql"
)
{
if
(
$
script_arg
==
"--test-mode-with-sql"
)
{
//output to console, but *with* calls to the database. (see what it's doing while saving data)
$TEST_MODE_WITH_SQL
=
1
;
}
...
...
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