summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2006-03-12 17:16:54 +0000
committerJason Rumney <jasonr@gnu.org>2006-03-12 17:16:54 +0000
commit4b6c7aaa76dcb8f4d1f307e00bf30561889225a9 (patch)
treecde71bf4b91c98d9012b8f2d4ab21ee6ffae34a8 /nt
parentf2d82261a650f0dde2617178677e88c6b151c7e5 (diff)
downloademacs-4b6c7aaa76dcb8f4d1f307e00bf30561889225a9.tar.gz
(main): Accept -q as alternative for /q.
Diffstat (limited to 'nt')
-rw-r--r--nt/addpm.c6
1 files 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;