2015-02-10, 09:47
Hi!
When doing the headless PR I started looking into our AppParamsParser. And what it does is rather simple but some things popped up I wanted to discuss.
a) Which of the options are needed? Feels like most aren't
b) We don't we use a third party parser, http://www.boost.org/doc/libs/1_57_0/doc...tions.html or GNU getopt ?
c) We call AppParam parsing well before application is started, so it feels a bit weird that its tied to app. Wouldn't it be better if AppParamParser just returned a struct with options, and we apply those in XBMC_Run?
When doing the headless PR I started looking into our AppParamsParser. And what it does is rather simple but some things popped up I wanted to discuss.
a) Which of the options are needed? Feels like most aren't
- kodi --lirc-dev
- kodi --no-lirc
- kodi -d X
- kodi --test
- kodi foo.mp3 bar.mp3
- kodi --legacy-res
- kodi --debug
- kodi --standalone
- kodi --settings=
- kodi --portable
- kodi --fullscreen
b) We don't we use a third party parser, http://www.boost.org/doc/libs/1_57_0/doc...tions.html or GNU getopt ?
c) We call AppParam parsing well before application is started, so it feels a bit weird that its tied to app. Wouldn't it be better if AppParamParser just returned a struct with options, and we apply those in XBMC_Run?