[gitlog] [eggheads/eggdrop] df7f55: Improve command line arg validation. Fixes #359

GitHub noreply at github.com
Sat Apr 29 02:10:23 UTC 2017

  Branch: refs/heads/develop
  Home:   https://github.com/eggheads/eggdrop
  Commit: df7f55c5d1462e76068c1ccf3a4e3186290ff218
  Author: Geo <vanosg at users.noreply.github.com>
  Date:   2017-04-28 (Fri, 28 Apr 2017)

  Changed paths:
    M language/core.danish.lang
    M language/core.english.lang
    M language/core.finnish.lang
    M language/core.french.lang
    M language/core.german.lang
    M src/main.c
    M src/version.h

  Log Message:
  Improve command line arg validation. Fixes #359

* Remove rogue -h entry from english help file
* Use getopt() to parse command line
* Disallow invalid flags from being given (previously ignored) on command line
* Add warning for multiple values of config file
* Remove lang file dependency for -h
* Check args before initializing language
Prevents -h/-v from showing unneeded error message if lang files are not in default location, as config file has not yet been parsed to update with alternate location
* Hard code CLI help, as language files aren't yet loaded for use

More information about the Changes mailing list