[Toybox] [PATCH] reboot/halt/poweroff: add -d.
enh
enh at google.com
Sat Sep 11 10:24:22 PDT 2021
On Sat, Sep 11, 2021 at 10:16 AM Rob Landley <rob at landley.net> wrote:
> On 9/10/21 6:31 PM, enh via Toybox wrote:
> > busybox has a -d that delays before proceeding. Annoyingly systemd also
> > has a -d, but that's to disable writing a wtmp shutdown entry.
>
> I've mostly said SECONDS and then had toybox --help explain about the
> fraction,
> but I'm aware that users aren't necessarily getting that information. Hmmm.
> Repeating the big long explanation everywhere that uses it seems less than
> ideal
> too. There's a todo item here I need to figure out.
>
yeah, though one reason i used DURATION rather than DELAY was because
there's a few uses of that.
personally, it's the places where we explain `-` as a filename that bug me.
maybe some kind of #include mechanism for "things you ought to know, but
might not"?
> Also, option parsing is STILL getting --help subtly wrong:
>
> $ ./toybox halt --help
> toybox: Not root (see "toybox --help")
>
heh, i was just about to look at that myself. i'll leave it if you're
looking!
> Sigh...
>
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210911/79973aec/attachment.htm>
More information about the Toybox
mailing list