Allow "same folder as input" flag for output
The Caesium GUI app has the option to output to the same folder as the file's input, resulting in an overwrite of the original file. Currently, the only way I can figure out how to do this in caesium-clt is to manually specify the same path via the --output param.
$ caesium -q 0 --output $env:USERPROFILE\screenshots $env:USERPROFILE\screenshots\test.png
Could this flag be added to the CLI as well? Maybe -s, --same-folder-as-input would work. I plan to use it to automatically compress my ShareX screenshots using a custom post-capture action.
A few comments about this:
- it would be just for convenience, as you can already do so as you said
- I think it must come with a warning saying you are about to overwrite the original files to avoid accidents
- a
--suffixoption (or something that can change the output file name) might be useful if you don't want to overwrite
What do you think?
I think it must come with a warning saying you are about to overwrite the original files to avoid accidents
Makes sense, although a force flag would be nice for automated workflows.
a
--suffixoption (or something that can change the output file name) might be useful if you don't want to overwrite
I can see that being useful, but for my use case, the $output variable in ShareX contains the full path and file name. As long as the path and the file name can only be specified each as separate arguments, this workflow wouldn't work without string parsing trickery.
This feature is really necessary, are there any plans to add it?
@asins yes, expect it to ship relatively soon
Released on v1.0.0-beta.0