From: Jason Rumney Date: Sun, 12 Mar 2006 17:16:54 +0000 (+0000) Subject: (main): Accept -q as alternative for /q. X-Git-Tag: emacs-pretest-22.0.90~3635 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f4c6fac4e89bbc0037a40321d1d92068d1c3a7d4;p=emacs.git (main): Accept -q as alternative for /q. --- diff --git a/nt/addpm.c b/nt/addpm.c index 65a403b7eaf..e882b23b5b1 100644 --- a/nt/addpm.c +++ b/nt/addpm.c @@ -122,12 +122,14 @@ main (argc, argv) #if 0 if (argc < 2 || argc > 3) { - fprintf (stderr, "usage: addpm [/q] [emacs_path [icon_path]]\n"); + fprintf (stderr, "usage: addpm [-q] [emacs_path [icon_path]]\n"); exit (1); } #endif - if (argc > 1 && argv[1][0] == '/' && argv[1][1] == 'q') + if (argc > 1 + && (argv[1][0] == '/' || argv[1][0] == '-') + && argv[1][1] == 'q') { quiet = 1; --argc;