From f4c6fac4e89bbc0037a40321d1d92068d1c3a7d4 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sun, 12 Mar 2006 17:16:54 +0000 Subject: [PATCH] (main): Accept -q as alternative for /q. --- nt/addpm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.2