Lines Matching refs:exeName

105 static int usage(const char* exeName)
108 DISPLAY( " %s [arg] [input] [output] \n", exeName);
125 static int usage_advanced(const char* exeName)
128 usage(exeName);
167 static int usage_longhelp(const char* exeName)
169 usage_advanced(exeName);
195 DISPLAY( "%s will refuse to read from console, or write to console \n", exeName);
201 DISPLAY( " %s filename\n", exeName);
206 DISPLAY( " %s -9 -f filename \n", exeName);
208 DISPLAY( " %s -9f filename \n", exeName);
210 DISPLAY( "%s can be used in 'pure pipe mode'. For example :\n", exeName);
213 DISPLAY( " generator | %s | consumer \n", exeName);
219 DISPLAY( " %s -hc filename \n", exeName);
222 DISPLAY( " %s -h -c filename \n", exeName);
228 static int badusage(const char* exeName)
231 if (displayLevel >= 1) usage(exeName);
251 @return : a non-zero value if exeName matches test, excluding the extension
253 static int exeNameMatch(const char* exeName, const char* test)
255 return !strncmp(exeName, test, strlen(test)) &&
256 (exeName[strlen(test)] == '\0' || exeName[strlen(test)] == '.');
333 const char* const exeName = lastNameFromPath(argv[0]);
348 if (exeNameMatch(exeName, LZ4CAT)) {
358 if (exeNameMatch(exeName, UNLZ4)) { mode = om_decompress; }
359 if (exeNameMatch(exeName, LZ4_LEGACY)) { g_lz4c_legacy_commands=1; }
404 if (!strcmp(argument, "--help")) { usage_advanced(exeName); goto _cleanup; }
416 badusage(exeName);
420 badusage(exeName);
454 case 'h': usage_advanced(exeName); goto _cleanup;
455 case 'H': usage_longhelp(exeName); goto _cleanup;
471 badusage(exeName);
531 if (B < 4) badusage(exeName);
537 if (B < 32) badusage(exeName);
585 default : badusage(exeName);
695 if (dynNameSpace==NULL) { perror(exeName); exit(1); }
706 if (dynNameSpace==NULL) { perror(exeName); exit(1); }
711 if (outl != inl-5) { DISPLAYLEVEL(1, "Cannot determine an output filename \n"); badusage(exeName); }