Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix public boolean switches in the standard library (#10477)
related to - #10456 # Description this PR will fix the public API of the standard library by removing the type annotations from public boolean switches. 1. the signature before ```nushell clip [--silent: bool, --no-notify: bool, --no-strip: bool, --expand (-e): bool, --codepage (-c): int] ``` 2. the signature after ```nushell clip [--silent, --no-notify, --no-strip, --expand (-e), --codepage (-c): int] ``` # User-Facing Changes ### before ```nushell > "foo" | clip Error: nu::shell::cant_convert × Can't convert to bool. ╭─[NU_STDLIB_VIRTUAL_DIR/std/mod.nu:148:1] 148 │ $in 149 │ | if $expand { table --expand } else { table } · ───┬─── · ╰── can't convert nothing to bool 150 │ | into string ╰──── ``` ### after ```nushell > "foo" | clip foo saved to clipboard ``` # Tests + Formatting # After Submitting
- Loading branch information