Tools: exit with code 0 when showing --help output

This is in line with what most tools do when printing --help
(and GOptionContext alike)
This commit is contained in:
Luca Bacci
2024-11-04 09:49:17 +01:00
parent 64dda64819
commit ddc9a6b597
4 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ usage (void)
" render Take a screenshot of the file\n"
" screenshot Take a screenshot of the file\n"
"\n"));
exit (1);
exit (0);
}
static GLogWriterOutput

View File

@@ -45,7 +45,7 @@ usage (void)
" relabel Change the color state of the image without conversion\n"
" show Show the image\n"
"\n"));
exit (1);
exit (0);
}
static GLogWriterOutput

View File

@@ -45,7 +45,7 @@ usage (void)
" render Render the path as an image\n"
" info Print information about the path\n"
"\n"));
exit (1);
exit (0);
}
static GLogWriterOutput

View File

@@ -45,7 +45,7 @@ usage (void)
" show Show the node\n"
" render Take a screenshot of the node\n"
"\n"));
exit (1);
exit (0);
}
static GLogWriterOutput