Kodi CLI
#1
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 Smile
  • 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?
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply


Messages In This Thread
Kodi CLI - by topfs2 - 2015-02-10, 09:47
RE: Kodi CLI - by Montellese - 2015-02-10, 11:33
RE: Kodi CLI - by topfs2 - 2015-02-16, 18:31
RE: Kodi CLI - by Ned Scott - 2015-02-10, 11:46
RE: Kodi CLI - by wsnipex - 2015-02-10, 14:56
RE: Kodi CLI - by xhaggi - 2015-02-11, 18:49
RE: Kodi CLI - by lrusak - 2015-02-11, 19:09
RE: Kodi CLI - by topfs2 - 2015-02-11, 21:50
RE: Kodi CLI - by wsnipex - 2015-02-12, 13:25
RE: Kodi CLI - by Martijn - 2015-02-12, 13:27
RE: Kodi CLI - by topfs2 - 2015-02-12, 13:52
RE: Kodi CLI - by Martijn - 2015-02-12, 14:07
RE: Kodi CLI - by xhaggi - 2015-02-12, 18:57
RE: Kodi CLI - by topfs2 - 2015-02-15, 15:53
RE: Kodi CLI - by wsnipex - 2015-02-16, 18:58
Logout Mark Read Team Forum Stats Members Help
Kodi CLI0