summaryrefslogtreecommitdiff
path: root/apps/pdfextract.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-04-15 22:15:14 +0200
committerTor Andersson <tor@ghostscript.com>2010-04-15 22:15:14 +0200
commitbd7e94651b00d884ffb0a5349182d99a87396a6d (patch)
tree1717a2d296eaae66414153976140e1abd658134c /apps/pdfextract.c
parent54bf79f2bee2f169f7b8611b661a93f9313bf09e (diff)
downloadmupdf-bd7e94651b00d884ffb0a5349182d99a87396a6d.tar.xz
Change command line flag for the password to -p for all tools.
Diffstat (limited to 'apps/pdfextract.c')
-rw-r--r--apps/pdfextract.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/pdfextract.c b/apps/pdfextract.c
index 6dff0bed..ce939b4c 100644
--- a/apps/pdfextract.c
+++ b/apps/pdfextract.c
@@ -6,8 +6,8 @@
static void showusage(void)
{
- fprintf(stderr, "usage: pdfextract [-d password] <file> [object numbers]\n");
- fprintf(stderr, " -d \tdecrypt password\n");
+ fprintf(stderr, "usage: pdfextract [-p password] <file> [object numbers]\n");
+ fprintf(stderr, " -p \tpassword\n");
exit(1);
}
@@ -216,11 +216,11 @@ int main(int argc, char **argv)
char *password = "";
int c, o;
- while ((c = fz_getopt(argc, argv, "d:")) != -1)
+ while ((c = fz_getopt(argc, argv, "p:")) != -1)
{
switch (c)
{
- case 'd': password = fz_optarg; break;
+ case 'p': password = fz_optarg; break;
default:
showusage();
break;