Add comment on nu_repl usage (#14734)

# Description

I just spent way too long trying to get `nu --testbin nu_repl
<commands>` working. That's one argument that must be called as `nu
--testbin=nu_repl <commands>` due to its implementation. This PR simply
adds a comment in `main()` noting that, hoping it will save someone else
some time in the future ;-)

# User-Facing Changes

None

# Tests + Formatting

N/A

# After Submitting

N/A
This commit is contained in:
Douglas 2025-01-03 13:38:46 -05:00 committed by GitHub
parent 25d90fa603
commit 6325bc5e54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -402,6 +402,9 @@ fn main() -> Result<()> {
"chop" => test_bins::chop(), "chop" => test_bins::chop(),
"repeater" => test_bins::repeater(), "repeater" => test_bins::repeater(),
"repeat_bytes" => test_bins::repeat_bytes(), "repeat_bytes" => test_bins::repeat_bytes(),
// Important: nu_repl must be called with `--testbin=nu_repl`
// `--testbin nu_repl` will not work due to argument count logic
// in test_bins.rs
"nu_repl" => test_bins::nu_repl(), "nu_repl" => test_bins::nu_repl(),
"input_bytes_length" => test_bins::input_bytes_length(), "input_bytes_length" => test_bins::input_bytes_length(),
_ => std::process::exit(1), _ => std::process::exit(1),