From bd7e94651b00d884ffb0a5349182d99a87396a6d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 15 Apr 2010 22:15:14 +0200 Subject: Change command line flag for the password to -p for all tools. --- apps/pdfextract.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/pdfextract.c') 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] [object numbers]\n"); - fprintf(stderr, " -d \tdecrypt password\n"); + fprintf(stderr, "usage: pdfextract [-p password] [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; -- cgit v1.2.3