Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Let run-help filter cmd_args before calling run-help-<command> (was Re: [RFC][PATCH] Try calling command with help flags in run-help)
- X-seq: zsh-workers 49008
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: "Marlon Richert" <marlon.richert@xxxxxxxxx>, "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Let run-help filter cmd_args before calling run-help-<command> (was Re: [RFC][PATCH] Try calling command with help flags in run-help)
- Date: Thu, 03 Jun 2021 17:45:29 -0400
- Archived-at: <https://zsh.org/workers/49008>
- In-reply-to: <CAHLkEDuPgBaNoGyu-io=0HKB1FxOpHGoHYUXHQSrwztMuEMVAw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDsDG7X9+oN8AowUoqcPU731tHALXJGvaqkxV8XnR2kULg@mail.gmail.com> <CAH+w=7Y1M-TkTJNb0q8LECy6-fViN=As5cn6KohneyeDLdPv4Q@mail.gmail.com> <CAHLkEDvhcTi-q-yKiwYAhyuSWTjB-mof0RCKqWyhmFrFQjPOsA@mail.gmail.com> <CAH+w=7YZVzbKde3NOaDxYSzJRwyWRTLc=RHOX4XATSBOT=Tvcw@mail.gmail.com> <CAHLkEDuPgBaNoGyu-io=0HKB1FxOpHGoHYUXHQSrwztMuEMVAw@mail.gmail.com>
On Thu, Jun 3, 2021, at 5:26 PM, Marlon Richert wrote:
> On Thu, Jun 3, 2021 at 7:34 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > Stupid example, but:
> >
> > % ssh -- localhost date
> >
> > Without the patch, run-help displays help for the "date" command.
> > With it, help for "ssh".
>
> That's weird. For me, it gets help for 'ssh', both before and after
> the patch (on commit bd328a2).
Same for me, on the 5.8 release.
> > or some commands that have git-style sub-commands.
>
> My patch actually fixes an annoying case with 'run-help git'. Try
> pressing ^[h on, for example, 'git -C /path/to/zsh log'. Without my
> patch, it gives
>
> % run-help git
> git is /usr/bin/git
> error: invalid key: alias.-C
> No manual entry for git--C
>
> With my patch, it correctly displays help for 'git log'.
This already works correctly for me on the 5.8 release, but I don't
have any zsh or git aliases configured.
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author