Lines Matching refs:exeName

105 static int usage(const char* exeName)  in usage()  argument
108 DISPLAY( " %s [arg] [input] [output] \n", exeName); in usage()
125 static int usage_advanced(const char* exeName) in usage_advanced() argument
128 usage(exeName); in usage_advanced()
167 static int usage_longhelp(const char* exeName) in usage_longhelp() argument
169 usage_advanced(exeName); in usage_longhelp()
195 DISPLAY( "%s will refuse to read from console, or write to console \n", exeName); in usage_longhelp()
201 DISPLAY( " %s filename\n", exeName); in usage_longhelp()
206 DISPLAY( " %s -9 -f filename \n", exeName); in usage_longhelp()
208 DISPLAY( " %s -9f filename \n", exeName); in usage_longhelp()
210 DISPLAY( "%s can be used in 'pure pipe mode'. For example :\n", exeName); in usage_longhelp()
213 DISPLAY( " generator | %s | consumer \n", exeName); in usage_longhelp()
219 DISPLAY( " %s -hc filename \n", exeName); in usage_longhelp()
222 DISPLAY( " %s -h -c filename \n", exeName); in usage_longhelp()
228 static int badusage(const char* exeName) in badusage() argument
231 if (displayLevel >= 1) usage(exeName); in badusage()
253 static int exeNameMatch(const char* exeName, const char* test) in exeNameMatch() argument
255 return !strncmp(exeName, test, strlen(test)) && in exeNameMatch()
256 (exeName[strlen(test)] == '\0' || exeName[strlen(test)] == '.'); in exeNameMatch()
332 const char* const exeName = lastNameFromPath(argv[0]); local
348 if (exeNameMatch(exeName, LZ4CAT)) {
358 if (exeNameMatch(exeName, UNLZ4)) { mode = om_decompress; }
359 if (exeNameMatch(exeName, LZ4_LEGACY)) { g_lz4c_legacy_commands=1; }
399 if (!strcmp(argument, "--help")) { usage_advanced(exeName); goto _cleanup; }
411 badusage(exeName);
415 badusage(exeName);
449 case 'h': usage_advanced(exeName); goto _cleanup;
450 case 'H': usage_longhelp(exeName); goto _cleanup;
466 badusage(exeName);
523 if (B < 4) badusage(exeName);
529 if (B < 32) badusage(exeName);
577 default : badusage(exeName);
691 if (dynNameSpace==NULL) { perror(exeName); exit(1); }
702 if (dynNameSpace==NULL) { perror(exeName); exit(1); }
707 …if (outl != inl-5) { DISPLAYLEVEL(1, "Cannot determine an output filename\n"); badusage(exeName); }