- char *arg = argv[1];
- /* accept -<digit>, like traditilnal "head" */
- if ((*arg == '-') && isdigit(arg[1])) {
- rev.max_count = atoi(arg + 1);
- }
- else if (!strcmp(arg, "-n")) {
- if (argc < 2)
- die("-n requires an argument");
- rev.max_count = atoi(argv[2]);
- argc--; argv++;
- }
- else if (!strncmp(arg,"-n",2)) {
- rev.max_count = atoi(arg + 2);
- }
- else if (!strncmp(arg, "--pretty", 8)) {
+ const char *arg = argv[1];
+ if (!strncmp(arg, "--pretty", 8)) {