changeset 69446:bffee52ee41d

(main): Accept -q as alternative for /q.
author Jason Rumney <jasonr@gnu.org>
date Sun, 12 Mar 2006 17:16:54 +0000
parents e4bed8b22e89
children ba388b0284f4
files nt/addpm.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nt/addpm.c	Sun Mar 12 17:16:34 2006 +0000
+++ b/nt/addpm.c	Sun Mar 12 17:16:54 2006 +0000
@@ -122,12 +122,14 @@
 #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;