aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

Miloslav Trma─Ź mitr at volny.cz
Thu Oct 18 19:19:55 UTC 2012

On Thu, Oct 18, 2012 at 8:30 PM, Lennart Poettering
<mzerqung at 0pointer.de> wrote:
> On Thu, 18.10.12 14:05, Matthew Miller (mattdm at fedoraproject.org) wrote:
>>  journalctl  -n500 -f
>> (No space allowed after then -n.)
> The space thing is really annoying actually. glibc's getopt() insists on
> that for options such as "-n" that have an optional argument (i.e. which
> appear as "n::" in the opt string). I'd love to fix this if somebody has
> an idea to get getopt() to be nice to us here...

Please just don't use optional arguments.
is the closest we have for a consensus on argument handling:
> Guideline 7:
>     Option-arguments should not be optional.

(The glibc behavior is also consistent with 12.1 item 2.)

More information about the devel mailing list