diff options
author | Jason Rumney <jasonr@gnu.org> | 2006-03-12 17:16:54 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2006-03-12 17:16:54 +0000 |
commit | f4c6fac4e89bbc0037a40321d1d92068d1c3a7d4 (patch) | |
tree | dcc5777dfad5082b09f3af66a2999566406ce26f /nt/addpm.c | |
parent | 335be36b8ac194e9c2916c03f68b2693b348435d (diff) | |
download | emacs-f4c6fac4e89bbc0037a40321d1d92068d1c3a7d4.tar.gz |
(main): Accept -q as alternative for /q.
Diffstat (limited to 'nt/addpm.c')
-rw-r--r-- | nt/addpm.c | 6 |
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; |