parse options before loading plugins
tbielawa opened this issue · comments
There's no reason for this behavior:
$ ./bin/jsonstatsd --help
Loading plugin... <class 'JsonStats.FetchStats.Fetcher'>
Loading plugin... <class 'JsonStats.FetchStats.Plugins.RPM.RPM'>
Loading plugin... <class 'JsonStats.FetchStats.Plugins.Facter.Facter'>
Loading plugin... <class 'JsonStats.FetchStats.Plugins.DEB.DEB'>
ERROR: Failed to load plugin 'deb':
sh: dpkg-query: command not found
Usage: jsonstatsd [options]
Options:
-h, --help show this help message and exit
-p PORT, --port=PORT Port to listen on. (Default: 8008)
-l LISTEN, --listen=LISTEN
Address to listen on. (Default: 0.0.0.0)
--logdir=LOGDIR Directory to log access requests to. (Default:
./logs/)