Commit f4c6fac4 authored by Jason Rumney's avatar Jason Rumney
Browse files

(main): Accept -q as alternative for /q.

parent 335be36b
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment