Re: [Musicpd-dev-team] mpc command-line options

2009-07-07 Thread Max Kellermann
On 2009/07/07 16:56, Jeffrey Middleton jefr...@gmail.com wrote: options: support short options; add other options In order to support short options, the option parser has been replaced. The parser itself comes largely from ncmpc (under the GPL); it was largely written by Kalle Wallin. I

Re: [Musicpd-dev-team] mpc command-line options

2009-07-07 Thread Jeffrey Middleton
I have a version that uses getopt_long but I thought I was told that was a bad idea because it comes from GNU getopt.h and we couldn't count on that being part of embedded systems? I can dig and find the email if it's relevant. Sorry about the debug code! I pulled that out of it on my end and

Re: [Musicpd-dev-team] mpc command-line options

2009-07-07 Thread Max Kellermann
On 2009/07/07 18:07, Jeffrey Middleton jefr...@gmail.com wrote: I have a version that uses getopt_long but I thought I was told that was a bad idea because it comes from GNU getopt.h and we couldn't count on that being part of embedded systems? I can dig and find the email if it's relevant.

Re: [Musicpd-dev-team] mpc command-line options

2009-07-07 Thread Max Kellermann
On 2009/07/07 18:45, Jeffrey Middleton jefr...@gmail.com wrote: Sorry, I emailed a bit on the mailing list a while back and thought I'd done the best thing given what we talked about. Since I was going to have to rewrite most of the code anyway to support long options, I thought reusing code