9front - general discussion about 9front
 help / color / mirror / Atom feed
From: kvik@a-b.xyz
To: 9front@9front.org
Subject: Re: [9front] -d option for fshalt
Date: Thu, 4 Jun 2020 14:27:43 +0200	[thread overview]
Message-ID: <7AB11D189863A13031E8FD10D69FD355@a-b.xyz> (raw)
In-Reply-To: <9183627795DC5C421772A3CB7E426121@musolino.id.au>

Seems like a reasonably useful option to have, though I'm inclined to
suggest a standalone dump [fscons ...] utility as an alternative that
one might conveniently use on its own, or combined with a halt:

	dump && fshalt

> Updated patch follows.

While I'd suggest perusing the new and improved getflags(8) to parse
the arguments the patch looks mostly good to me.

Replace the -* while loop with:

	flagfmt = 'd:dump, r:reboot'
	eval `''{aux/getflags $*} || exec aux/usage

And change "yes / no" to "1 / 0" where appropriate.


  reply	other threads:[~2020-06-04 12:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02  4:37 Alex Musolino
2020-06-02  4:58 ` [9front] " Alex Musolino
2020-06-02  6:54 ` Alex Musolino
2020-06-02  6:59 ` rgl
2020-06-04  6:57   ` Alex Musolino
2020-06-04 12:27     ` kvik [this message]
2020-06-04 13:57       ` Alex Musolino
2020-06-04 15:50         ` kvik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7AB11D189863A13031E8FD10D69FD355@a-b.xyz \
    --to=kvik@a-b.xyz \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).