Commit 9f14479
authored
Fixes nushell#10644
## the deprecation errors
- using `--pretty` alone` will run the command and give a warning
```nushell
> {tag: note content : [{tag: remember content : [Event]}]} | to xml --pretty 4
Error: × Deprecated option
╭─[entry #7:1:1]
1 │ {tag: note content : [{tag: remember content : [Event]}]} | to xml --pretty 4
· ───┬──
· ╰── `to xml --pretty {int}` is deprecated and will be removed in 0.87.
╰────
help: Please use `--indent {int}` instead.
<note>
<remember>Event</remember>
</note>
```
- using `--pretty` and `--indent` will give the deprecation warning and
throw an error
```nushell
> {tag: note content : [{tag: remember content : [Event]}]} | to xml --pretty 4 --indent 4
Error: × Deprecated option
╭─[entry nushell#9:1:1]
1 │ {tag: note content : [{tag: remember content : [Event]}]} | to xml --pretty 4 --indent 4
· ───┬──
· ╰── `to xml --pretty {int}` is deprecated and will be removed in 0.87.
╰────
help: Please use `--indent {int}` instead.
Error: nu:🐚:incompatible_parameters
× Incompatible parameters.
╭─[entry nushell#9:1:1]
1 │ {tag: note content : [{tag: remember content : [Event]}]} | to xml --pretty 4 --indent 4
· ┬ ┬
· │ ╰── and --indent
· ╰── Cannot pass --pretty
╰────
```
1 parent 0b651b6 commit 9f14479
1 file changed
+39
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
63 | | - | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
83 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
84 | 116 | | |
85 | | - | |
| 117 | + | |
86 | 118 | | |
87 | 119 | | |
88 | 120 | | |
| |||
373 | 405 | | |
374 | 406 | | |
375 | 407 | | |
376 | | - | |
| 408 | + | |
377 | 409 | | |
378 | | - | |
| 410 | + | |
379 | 411 | | |
380 | 412 | | |
381 | 413 | | |
| |||
0 commit comments