version 1.22, 2013/11/20 21:21:50 |
version 1.23, 2014/04/14 22:51:20 |
|
|
deprecated = 1; |
deprecated = 1; |
argv = *argvp; |
argv = *argvp; |
while ((ch = getopt(argc, argv, |
while ((ch = getopt(argc, argv, |
"A:aBbcDdeFfHhIij:LlN:OoPpst:wvXx")) != -1) |
"A:aBbcDdeFfHhIij:LlN:Oot:vXx")) != -1) |
switch (ch) { |
switch (ch) { |
case 'A': |
case 'A': |
switch (*optarg) { |
switch (*optarg) { |
|
|
case 'v': |
case 'v': |
vflag = ALL; |
vflag = ALL; |
break; |
break; |
case 'P': |
|
case 'p': |
|
case 's': |
|
case 'w': |
|
case '?': |
|
default: |
default: |
warnx("od(1) has been deprecated for hexdump(1)."); |
|
if (ch != '?') |
|
warnx( |
|
"hexdump(1) compatibility doesn't" |
|
" support the -%c option%s", |
|
ch, ch == 's' ? "; see strings(1)." : "."); |
|
oldusage(); |
oldusage(); |
} |
} |
|
|