From 6325bc5e54af871ae0588c05506cc84007fc695e Mon Sep 17 00:00:00 2001 From: Douglas <32344964+NotTheDr01ds@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:38:46 -0500 Subject: [PATCH] Add comment on `nu_repl` usage (#14734) # Description I just spent way too long trying to get `nu --testbin nu_repl ` working. That's one argument that must be called as `nu --testbin=nu_repl ` 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 --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index bfae9c2f31..8f228b5f1f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -402,6 +402,9 @@ fn main() -> Result<()> { "chop" => test_bins::chop(), "repeater" => test_bins::repeater(), "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(), "input_bytes_length" => test_bins::input_bytes_length(), _ => std::process::exit(1),