unioslo / mreg-cli

Command Line Interface for Mreg
GNU General Public License v3.0
2 stars 7 forks source link

Fix broken command completion rendering for top-level commands #309

Closed pederhan closed 2 weeks ago

pederhan commented 2 weeks ago

The number of words in the short help text of top-level commands (host, help, etc.) would influence the rendering of their CLI completions, leading to h displaying help and host as completions on the same line, making it look like the suggested completion was help host.

Very bizarre. To fix this we just disable display_meta for top-level command completions. Yeah, not ideal.