-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi! I ran into an issue when trying to use the CLI in a script.
If the tool generates an error message while waiting on the 2FA authentication to complete, this error will be written to stdout along with the (CSV/JSON) output from the comdirect API.
In my case, the tool is called like this:
# comdirect depot position <id> -f csv > depot.csv
This sometimes results in an invalid CSV file, where the first line contains the error message.
This is why I propose the addition of a new -o / --output
flag, that will always create a valid output file while still printing any log message to stdout/stderr.
My implementation of this is working fine and I'm happy open a PR with my changes after some more testing and if this is something you'd like to support :)