l...@gnu.org (Ludovic Courtès) skribis: > I wonder if ‘guix-pcomplete-run-guix’ couldn’t run the command in a REPL > instead of spawning a process. That is, when completing ‘guix build’, > it would evaluate something like: > > (with-output-to-string > (lambda () > (catch 'quit > (lambda () > ((@ (guix scripts build) guix-build) "--help")) > (const #t))))
Another possibility would be to inspect the ‘%options’ variable of the command, but that wouldn’t give access to the help message. Ludo’.