mirror of
https://github.com/nushell/nushell
synced 2025-01-13 05:38:57 +00:00
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:
parent
25d90fa603
commit
6325bc5e54
1 changed files with 3 additions and 0 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue