From 8f1b90cd4be645edf8663080f19ffe93d82da70f Mon Sep 17 00:00:00 2001 From: guesswhozzz Date: Tue, 10 Dec 2024 17:31:22 +0300 Subject: [PATCH] Add help argument --- src/_yfm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_yfm b/src/_yfm index 5610ce2..86c8ad4 100644 --- a/src/_yfm +++ b/src/_yfm @@ -53,6 +53,7 @@ _yfm() { typeset -A opt_args _arguments \ + '(- *)'{-h,--help}'[Show help message]' \ '(-i --input)'{-i,--input}'[Configure path to yfm input directory]:dir:_suggest_dir' \ '(-o --output)'{-o,--output}'[Configure path to yfm output directory]:dir:_suggest_dir' \ '(--varsPreset)'--varsPreset'[Name of the variable preset used]:TEXT' \ @@ -65,7 +66,6 @@ _yfm() { '(--apply-presets)'--apply-presets'[Substitute variable values from presets when building in YFM]:TEXT' \ '(--add-system-meta)'--add-system-meta'[Add variables from the system presets section to metadata files]' \ '(--remove-hidden-toc-items)'--remove-hidden-toc-items'[Remove hidden pages from the build result]' \ - '(--version)'--version'[Current version]' \ '(--lint-disabled)'--lint-disabled'[Should whether to turn off a linter]' \ '(--build-disabled)'--build-disabled'[Should whether to turn off a build]' \ '(--add-map-file)'--add-map-file'[hould add all paths of documentation into file.json]' \