On Fri, 28 Oct 2016 22:56:14 +0200 Klemens Nanni <[email protected]> wrote:
Hey Klemens, > arg.h is really ugly code and way to complex for tools like slock that > have such minimal synopsis. it's a bit of "macro magic", but not really that complex if you think about it. Also, the usage within the code is dead simple and straightforward. > Regardless of that, usage() does not have to be a function of it's own > if it's called just once. Well, what's the problem with it being a standalone function? > This (hopefully) is the final commit implementing proper command-line > pargsing adhering to the POSIX Utility Syntax Guidelines[0] after > submitting two incomplete patches to the hackers@suckless mailinglist. Just out of interest, what exactly is arg.h not adhering to with regard to these POSIX Utility Syntax Guidelines? > 0:http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02 Cheers Laslo -- Laslo Hunhold <[email protected]>
