X-Git-Url: https://jxself.org/git/?p=b43-tools.git;a=blobdiff_plain;f=disassembler%2Fargs.c;h=08e3a402c3ac25cb68b5ae7d7adb9595876e3654;hp=45a39b0266fbf8774f762ce84521060eff6f3041;hb=6741c3e236e8a3cb812c2028d18d7a7f91bab5f5;hpb=b1bec1c68d7a81253630ea4d00713b5622f483a8 diff --git a/disassembler/args.c b/disassembler/args.c index 45a39b0..08e3a40 100644 --- a/disassembler/args.c +++ b/disassembler/args.c @@ -103,7 +103,7 @@ static void usage(FILE *fd, int argc, char **argv) fprintf(fd, " -a|--arch ARCH The architecture type of the input file (5 or 15)\n"); fprintf(fd, " -f|--format FMT Input file format. FMT must be one of:\n"); fprintf(fd, " raw-le32, raw-be32, b43\n"); - fprintf(fd, " --paddr Print the code addresses\n"); + fprintf(fd, " -p|--paddr Print the code addresses\n"); fprintf(fd, " -u|--unkdec Decode operands of unknown instructions\n"); fprintf(fd, " -d|--debug Print verbose debugging info\n"); fprintf(fd, " Repeat for more verbose debugging\n"); @@ -134,7 +134,7 @@ int parse_args(int argc, char **argv) fprintf(stderr, "Invalid -f|--format\n"); return -1; } - } else if ((res = cmp_arg(argv, &i, "--paddr", NULL, NULL)) == ARG_MATCH) { + } else if ((res = cmp_arg(argv, &i, "--paddr", "-p", NULL)) == ARG_MATCH) { cmdargs.print_addresses = 1; } else if ((res = cmp_arg(argv, &i, "--unkdec", "-u", NULL)) == ARG_MATCH) { cmdargs.unknown_decode = 1;