google / google/python-fire

shouldn't --completion for zsh also complete paths?

Offen
#525 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
28.2k
Forks
1.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi,

I was struggling to make `-- --completion` work with both my arguments and paths. For example I have a "--path" argument and I would like to autocomplete files paths instead of treating it as a flag.

The workaround I found was to do `sed 's/compgen -W/compgen -f -W/g'`

Is there something I'm missing or should I make a PR to add this '-f' by default?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.