From b559bc3034679cee65e828c8537b3f229bd92cd6 Mon Sep 17 00:00:00 2001 From: Socialpranker <0630039863abc@gmail.com> Date: Wed, 5 Aug 2026 10:39:41 +0200 Subject: [PATCH] fix: repair --format help text in CLI The continuation of the --format value list was printed after the --forgiving line, so the help output broke the description in half: --format Convert to a specific format. Must be one of: vcard, vcard21, --forgiving Makes the parser less strict. vcard30, vcard40, icalendar20, jcal, jcard, json, mimedir. Move the continuation back under --format, and add the missing 'icalendar' value: the match in the 'format' case accepts ten values, the help text listed nine. --- lib/Cli.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cli.php b/lib/Cli.php index 386cf2c73..da8789a3a 100644 --- a/lib/Cli.php +++ b/lib/Cli.php @@ -214,8 +214,9 @@ protected function showHelp(): void $this->log($this->colorize('green', ' -q ')."Don't output anything."); $this->log($this->colorize('green', ' -help -h ').'Display this help message.'); $this->log($this->colorize('green', ' --format ').'Convert to a specific format. Must be one of: vcard, vcard21,'); + $this->log(' vcard30, vcard40, icalendar, icalendar20, jcal, jcard, json,'); + $this->log(' mimedir.'); $this->log($this->colorize('green', ' --forgiving ').'Makes the parser less strict.'); - $this->log(' vcard30, vcard40, icalendar20, jcal, jcard, json, mimedir.'); $this->log($this->colorize('green', ' --inputformat ').'If the input format cannot be guessed from the extension, it'); $this->log(' must be specified here.'); $this->log($this->colorize('green', ' --pretty ').'json pretty-print.');