wmppp.app: Add new command line options.
commit2b0feb59f81a73d91b8564cc92b0df8e61ae3539
authorDoug Torrance <dtorrance@monmouthcollege.edu>
Wed, 20 May 2015 03:31:08 +0000 (19 22:31 -0500)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 20 May 2015 09:44:41 +0000 (20 10:44 +0100)
tree03629dc44cca8d4f2b4a03c2dea74e258060ea3a
parent540b8ac560eafe8c85609ae10ef6aea36e5679ab
wmppp.app: Add new command line options.

We add command line options for the user to change the start, stop, speed,
ifdown, and stampfile settings at runtime.  This closes a Debian wishlist
bug [1].

Note that, in order to have the command line options overwrite the
defaults set in the configuration file, we split the command line parsing
code into a new function (parse_cmdline()).  We then merged main() and
wmppp_routine().

We document the new options in the help text and in the man page.  We also
take the opportunity to reformat the help text for the -i option and add
the -geometry option to the man page.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293839
wmppp.app/wmppp.1
wmppp.app/wmppp.c