forked from bonsai/harakit
dj(1), dj.1: Remove -A (use -a "\0") (see #101)
This commit is contained in:
7
src/dj.c
7
src/dj.c
@@ -265,7 +265,7 @@ parse(char *s){
|
||||
static int
|
||||
usage(void){
|
||||
|
||||
fprintf(stderr, "Usage: %s (-AHn) (-a [byte]) (-c [count])\n"
|
||||
fprintf(stderr, "Usage: %s (-Hn) (-a [byte]) (-c [count])\n"
|
||||
"\t(-i [input file]) (-b [input block size]) (-s [input offset])\n"
|
||||
"\t(-o [output file]) (-B [output block size]) (-S [output offset])\n",
|
||||
program_name);
|
||||
@@ -294,7 +294,7 @@ int main(int argc, char *argv[]){
|
||||
|
||||
if(argc > 0){
|
||||
program_name = argv[0];
|
||||
while((c = getopt(argc, argv, "a:Ab:B:c:i:hHns:S:o:")) != -1)
|
||||
while((c = getopt(argc, argv, "a:b:B:c:i:hHns:S:o:")) != -1)
|
||||
switch(c){
|
||||
case 'i': case 'o':
|
||||
i = (c == 'o');
|
||||
@@ -306,11 +306,10 @@ int main(int argc, char *argv[]){
|
||||
break;
|
||||
terminate(io);
|
||||
return oserr(optarg);
|
||||
case 'A': align = '\0'; break;
|
||||
case 'n': noerror = 1; break;
|
||||
case 'H': fmt_output = fmt_human; break;
|
||||
case 'a':
|
||||
if(optarg[0] != '\0' && optarg[1] == '\0'){
|
||||
if(optarg[0] == '\0' || optarg[1] == '\0'){
|
||||
align = optarg[0];
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user