mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
math: Support abbreviated scale modes
This commit is contained in:
parent
80c02400eb
commit
1a7a7a5dcb
1 changed files with 2 additions and 2 deletions
|
@ -80,13 +80,13 @@ fn parse_cmd_opts(
|
|||
}
|
||||
'm' => {
|
||||
let optarg = w.woptarg.unwrap();
|
||||
if optarg.eq(utf32str!("truncate")) {
|
||||
if optarg.eq(utf32str!("truncate")) || optarg.eq(utf32str!("trunc")) {
|
||||
opts.scale_mode = ScaleMode::Truncate;
|
||||
} else if optarg.eq(utf32str!("round")) {
|
||||
opts.scale_mode = ScaleMode::Round;
|
||||
} else if optarg.eq(utf32str!("floor")) {
|
||||
opts.scale_mode = ScaleMode::Floor;
|
||||
} else if optarg.eq(utf32str!("ceiling")) {
|
||||
} else if optarg.eq(utf32str!("ceiling")) || optarg.eq(utf32str!("ceil")) {
|
||||
opts.scale_mode = ScaleMode::Ceiling;
|
||||
} else {
|
||||
streams
|
||||
|
|
Loading…
Reference in a new issue