|
@@ -508,6 +508,11 @@ int G_parser(int argc, char **argv)
|
|
|
while (--argc) {
|
|
|
ptr = *(++argv);
|
|
|
|
|
|
+ /* JSON print option */
|
|
|
+ if (strcmp(ptr, "--json") == 0) {
|
|
|
+ print_json = 1;
|
|
|
+ }
|
|
|
+
|
|
|
if (strcmp(ptr, "help") == 0 || strcmp(ptr, "--h") == 0 ||
|
|
|
strcmp(ptr, "-help") == 0 || strcmp(ptr, "--help") == 0) {
|
|
|
G_usage();
|
|
@@ -519,11 +524,6 @@ int G_parser(int argc, char **argv)
|
|
|
st->overwrite = 1;
|
|
|
}
|
|
|
|
|
|
- /* JSON print option */
|
|
|
- if (strcmp(ptr, "--json") == 0) {
|
|
|
- print_json = 1;
|
|
|
- }
|
|
|
-
|
|
|
/* Verbose option */
|
|
|
else if (strcmp(ptr, "--v") == 0 || strcmp(ptr, "--verbose") == 0) {
|
|
|
char buff[32];
|