[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unhelpful "--help" output
From: |
Christopher Howard |
Subject: |
Re: Unhelpful "--help" output |
Date: |
Tue, 12 Nov 2024 10:56:59 -0900 |
indieterminacy <indieterminacy@libre.brussels> writes:
> Sounds interesting.
>
> I guess you are being implicit regarding the spacing order?
> It may be more resilient to consider counting the number of opening
> spaces/tabs and then compare the results.
>
> In any case Id like to look at the uri to see how Transient is
> operating off your PEGs.
>
Hi, right now I'm just trying, during my lunchbreaks, to fix the code that is
already written. But I keep having to use my lunch breaks for other things,
like vehicle maintenance, so progress has been slow.
https://git.savannah.gnu.org/git/guix/emacs-guix.git/
One of the interfaces emacs-guix provides is a magit-popup interface to all the
guix commands, which it generates by parsing the "guix --help" output, along
with Improver code to improve handling of some of the options. That was broke
(for years...?) because the regex expected three spaces before a command
description, whereas now there is four spaces. I submitted a patch for that.
What is the old saying? Solve a problem with a regular expression, and now you
have two problems. :) But the regular expressions are written in that nice rx
notation, so that helps a lot.
Emacs-guix uses magit-popup, the predecessor of Transient.
--
Christopher Howard