diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-04-15 22:15:14 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-04-15 22:15:14 +0200 |
commit | bd7e94651b00d884ffb0a5349182d99a87396a6d (patch) | |
tree | 1717a2d296eaae66414153976140e1abd658134c /apps/pdfshow.c | |
parent | 54bf79f2bee2f169f7b8611b661a93f9313bf09e (diff) | |
download | mupdf-bd7e94651b00d884ffb0a5349182d99a87396a6d.tar.xz |
Change command line flag for the password to -p for all tools.
Diffstat (limited to 'apps/pdfshow.c')
-rw-r--r-- | apps/pdfshow.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/pdfshow.c b/apps/pdfshow.c index 9ada637f..b773d8bf 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -10,10 +10,10 @@ static int showcolumn; static void showusage(void) { - fprintf(stderr, "usage: pdfshow [-bx] [-d password] <file> [xref] [trailer] [object numbers]\n"); + fprintf(stderr, "usage: pdfshow [-bx] [-p password] <file> [xref] [trailer] [object numbers]\n"); fprintf(stderr, " -b \tprint streams as raw binary data\n"); fprintf(stderr, " -x \tdecompress streams\n"); - fprintf(stderr, " -d \tdecrypt password\n"); + fprintf(stderr, " -p \tdecrypt password\n"); exit(1); } @@ -125,11 +125,11 @@ int main(int argc, char **argv) char *password = ""; int c; - while ((c = fz_getopt(argc, argv, "d:bx")) != -1) + while ((c = fz_getopt(argc, argv, "p:bx")) != -1) { switch (c) { - case 'd': password = fz_optarg; break; + case 'p': password = fz_optarg; break; case 'b': showbinary ++; break; case 'x': showdecode ++; break; default: |