Skip to content

Commit

Permalink
rename README; support CLI "bioawk -tc help"
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Aug 27, 2013
1 parent 7e8a89f commit cae04c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitigore
@@ -0,0 +1,2 @@
*.o
.*.swp
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions main.c
Expand Up @@ -164,8 +164,11 @@ int main(int argc, char *argv[])
WARNING("unknown option %s ignored", argv[1]);
break;
}
argc--;
argv++;
if ((argv[1][1] == 't' || argv[1][1] == 'H') && argv[1][2] != 0) { /* dealing with for example "-tc help" */
char *p;
for (p = &argv[1][2]; *p; ++p) *(p-1) = *p;
*(p-1) = *p;
} else --argc, ++argv;
}
/* argv[1] is now the first argument */
if (npfile == 0) { /* no -f; first argument is program */
Expand Down

0 comments on commit cae04c2

Please sign in to comment.