nushell/crates/nu-engine/src
Douglas 68377c176d
Remove superfluous separator when there's no flag description/comment (#14007)
# Description

Fixes a small side-issue in #10977 - If a command flag didn't have a
comment/description, it would still show an unnecessary separator at the
end of the line.

This fixes that, plus uses the `: ` (colon) to separate the flag from
the description. This aligns with the way that named parameters are
handled.

# User-Facing Changes

Help/doc only

# Tests + Formatting

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

N/A
2024-10-05 15:19:26 +02:00
..
compile Make SpanId and RegId also use new ID struct (#13963) 2024-10-01 13:23:27 +02:00
call_ext.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
closure_eval.rs Use Arc for environment variables on the stack (#13333) 2024-07-10 17:34:50 -07:00
column.rs Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
command_prelude.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
documentation.rs Remove superfluous separator when there's no flag description/comment (#14007) 2024-10-05 15:19:26 +02:00
env.rs Make get_env_var return a reference to a Value (#13987) 2024-10-02 13:05:48 +02:00
eval.rs Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
eval_helpers.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
eval_ir.rs Make SpanId and RegId also use new ID struct (#13963) 2024-10-01 13:23:27 +02:00
glob_from.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
lib.rs Add top-level crate documentation/READMEs (#12907) 2024-07-14 10:10:41 +02:00
scope.rs Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00