Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-w does not always default to read parser #279

Open
yorickdowne opened this issue Dec 28, 2022 · 1 comment
Open

-w does not always default to read parser #279

yorickdowne opened this issue Dec 28, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@yorickdowne
Copy link

Describe the bug

dasel v2.0.2

Run dasel put -f NLog.config -r xml -t json 'nlog.rules.logger' -v '{"-name":"JsonWebAPI.Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService","-maxlevel":"Error","-final":"true"}'

and get

Error: could not get write parser from filename: unknown parser: .config

Expected behavior
Write parser is the same as read parser, instead of taken from filename.

If "from filename" is intended instead, change the --help text.

Additional context
Workaround: Add -w xml and the command works.

@yorickdowne yorickdowne added the bug Something isn't working label Dec 28, 2022
@yorickdowne
Copy link
Author

NLog.config.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant