MCPcopy Create free account
hub / github.com/F-Stack/f-stack / usage

Function usage

freebsd/contrib/zstd/zlibWrapper/examples/zwrapbench.c:802–826  ·  view source on GitHub ↗

-************************************ * Command Line **************************************/

Source from the content-addressed store, hash-verified

800* Command Line
801**************************************/
802static int usage(const char* programName)
803{
804 DISPLAY(WELCOME_MESSAGE);
805 DISPLAY( "Usage :\n");
806 DISPLAY( " %s [args] [FILE(s)] [-o file]\n", programName);
807 DISPLAY( "\n");
808 DISPLAY( "FILE : a filename\n");
809 DISPLAY( " with no FILE, or when FILE is - , read standard input\n");
810 DISPLAY( "Arguments :\n");
811 DISPLAY( " -D file: use `file` as Dictionary \n");
812 DISPLAY( " -h/-H : display help/long help and exit\n");
813 DISPLAY( " -V : display Version number and exit\n");
814 DISPLAY( " -v : verbose mode; specify multiple times to increase log level (default:%d)\n", DEFAULT_DISPLAY_LEVEL);
815 DISPLAY( " -q : suppress warnings; specify twice to suppress errors too\n");
816#ifdef UTIL_HAS_CREATEFILELIST
817 DISPLAY( " -r : operate recursively on directories\n");
818#endif
819 DISPLAY( "\n");
820 DISPLAY( "Benchmark arguments :\n");
821 DISPLAY( " -b# : benchmark file(s), using # compression level (default : %d) \n", ZSTDCLI_CLEVEL_DEFAULT);
822 DISPLAY( " -e# : test all compression levels from -bX to # (default: %d)\n", ZSTDCLI_CLEVEL_DEFAULT);
823 DISPLAY( " -i# : minimum evaluation time in seconds (default : 3s)\n");
824 DISPLAY( " -B# : cut file into independent blocks of size # (default: no block)\n");
825 return 0;
826}
827
828static int badusage(const char* programName)
829{

Callers 2

badusageFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected