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

Feature request: -O, --output-mode: specify clobber, noclobber, or append for output files #52

Open
XLTechie opened this issue Aug 25, 2022 · 0 comments

Comments

@XLTechie
Copy link

There is a -o switch, to specify an output file.
However, there is no info in the readme/help, about what it does if the file already exists.

There are many possible ways to go. One potential one is:

  • --output-mode=noclobber (default): Don't overwrite if file exists
  • --output-mode=clobber: Truncate and replace existing output file.
  • --output-mode=append: Add to an existing output file.

The last is the option I need right now, which made me think of this. Yes, I know about >> shell redirection for append, but not everyone does, and that isn't practical in all scripting/piping scenarios.

@XLTechie XLTechie changed the title Feature request: -O, --output-mode Feature request: -O, --output-mode: specify clobber, noclobber, or append for output files Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant