Is --parser
necessary?
#154
-
Yesterday (well I was introduced to Now I know However I think it's possible to get rid of For example, When you need to change the output to Thus, to the original point. Why do we need |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The ability to convert between data types was added in Prior to this the In order to keep backward compatibility the flag has to remain but as you say, you can essentially forget about it and just use
|
Beta Was this translation helpful? Give feedback.
The ability to convert between data types was added in
v1.7.0
: https://github.com/TomWright/dasel/blob/master/CHANGELOG.md#v170---2020-11-30Prior to this the
-p
flag was used to tell dasel which data type to expect when reading fromstdin
.In order to keep backward compatibility the flag has to remain but as you say, you can essentially forget about it and just use
-r
since internally when no-w
flag is provided, the-r
value is used.-r
is shorthand for--read
, which is used to set a read parser.-w
is shorthand for--write
, which is used to set a write parser.-p
is shorthand for--parser
, which is effectively an alias of-r <val> -w <val>