Clarify that input's history feature uses reedline (#16334)

Follow up to this commit @sholderbach made on my PR #16329:
f21350ec88 (diff-5cab4dac5ced236548db9fbf6cd0e9d250ba12317bb916ec26603054ce9144a7)
This commit is contained in:
Harper Andrews
2025-08-08 15:20:42 -05:00
committed by GitHub
parent e6d673c39e
commit 06fa1784c1

View File

@ -55,13 +55,13 @@ impl Command for Input {
.named(
"history-file",
SyntaxShape::Filepath,
"Path to a file to read and write command history. This is a text file and will be created if it doesn't exist. Will be used as the selection list.",
"Path to a file to read and write command history. This is a text file and will be created if it doesn't exist. Will be used as the selection list. Implies `--reedline`.",
None,
)
.named(
"max-history",
SyntaxShape::Int,
"The maximum number of entries to keep in the history, defaults to $env.config.history.max_size.",
"The maximum number of entries to keep in the history, defaults to $env.config.history.max_size. Implies `--reedline`.",
None,
)
.switch("suppress-output", "don't print keystroke values", Some('s'))
@ -230,7 +230,7 @@ impl Command for Input {
},
Example {
description: "Get input from the user with history backed by a file, and assign to a variable",
example: "let user_input = (input --history-file ./history.txt)",
example: "let user_input = (input --reedline --history-file ./history.txt)",
result: None,
},
]