Skip to content

Commit

Permalink
fix: forgot to update after testing
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <devin@buhl.casa>
  • Loading branch information
onedr0p committed Oct 14, 2024
1 parent 8796db7 commit 80da2a3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions minijinja-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ pub(super) fn make_command() -> Command {
.env("MINIJINJA_TRIM_BLOCKS"),
arg!(--"lstrip-blocks" "Enable the lstrip_blocks flag")
.env("MINIJINJA_LSTRIP_BLOCKS"),
#[cfg(feature = "contrib")]
arg!(--"py-compat" "Enables improved Python compatibility. Enabling \
this adds methods such as dict.keys and some others."),
arg!(-s --syntax <PAIR>... "Changes a syntax feature (feature=value)")
.env("MINIJINJA_SYNTAX"),
arg!(--"safe-path" <PATH>... "Only allow includes from this path. Can be used multiple times.")
Expand All @@ -58,6 +61,20 @@ pub(super) fn make_command() -> Command {
arg!(--dump <KIND> "dump internals of a template")
.value_parser(["instructions", "ast", "tokens"])
.env("MINIJINJA_DUMP"),
#[cfg(feature = "repl")]
arg!(--repl "starts the repl with the given data")
.conflicts_with_all(["expr", "template"]),
#[cfg(feature = "completions")]
arg!(--"generate-completion" <SHELL> "generate a completion script for the given shell")
.value_parser([
"bash",
"elvish",
"fig",
"fish",
"nushell",
"powershell",
"zsh",
]),
arg!(-o --output <FILENAME> "path to the output file")
.default_value("-")
.value_parser(value_parser!(PathBuf))
Expand Down

0 comments on commit 80da2a3

Please sign in to comment.