Command line options usage */
| 389 | |
| 390 | /* Command line options usage */ |
| 391 | static void |
| 392 | usage(char * progname) { |
| 393 | printf("%s: tests libutil humanize_number function\n", progname); |
| 394 | printf("Usage: %s [-nE] [-l num] [-v]\n\n", progname); |
| 395 | printf("Options:\n"); |
| 396 | printf("\t-l num\tSet max length for result; buflen = num + 1\n"); |
| 397 | printf("\t\t (NOTE: does not change expected result strings.)\n"); |
| 398 | printf("\t-n\tInclude negative scale tests, which cause older libutil\n"); |
| 399 | printf("\t\t version of function to coredump with assertion failure\n"); |
| 400 | printf("\t-E\tInclude numbers > 1/2 Exa[byte] which currently fail\n"); |
| 401 | printf("\t-v\tVerbose - always print summary results\n"); |
| 402 | printf("\t-h, -?\tShow options\n"); |
| 403 | } |
| 404 | |
| 405 | /* Parse command line options */ |
| 406 | static void |
no test coverage detected