mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Training tools: Print help message when (argv == 1)
This commit is contained in:
parent
c5b86d0fdd
commit
a38c2d8e6d
@ -144,6 +144,12 @@ void PrintCommandLineFlags() {
|
||||
void ParseCommandLineFlags(const char* usage,
|
||||
int* argc, char*** argv,
|
||||
const bool remove_flags) {
|
||||
if (*argc == 1) {
|
||||
tprintf("USAGE: %s\n", usage);
|
||||
PrintCommandLineFlags();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
unsigned int i = 1;
|
||||
for (i = 1; i < *argc; ++i) {
|
||||
const char* current_arg = (*argv)[i];
|
||||
|
Loading…
Reference in New Issue
Block a user