From: Günter M. <mi...@us...> - 2022-07-07 20:54:58
|
The original problem (accidential overwriting because of shell expansion, http://bugs.debian.org/654690) would also be solved by a different syntax for the output file: instead of `rst2html infile outfile` we could use the signature rst2html infile [infile2 [infile3 [...]]] --output=outfile which would: - prevent interpretation of an "accidential" second argument as outfile (and hence overwriting), - be in line with [usability recommendations](https://clig.dev/#arguments-and-flags), - allow chaining of rST source files, e.g. prepending a file that defines roles or substitutions or combining chapters/parts without requiring a master document. --- ** [feature-requests:#36] option for disallowing file overwrites** **Status:** pending **Group:** **Created:** Fri Mar 15, 2013 10:43 PM UTC by Jakub Wilk **Last Updated:** Thu Jul 07, 2022 08:21 PM UTC **Owner:** nobody A Debian user complained that if you use a wildcard as input file name, and the wildcard unexpectedly expands to two names, then rst2html will overwrite your files: http://bugs.debian.org/654690 Would if be possible to add an option for not overwriting output files, that you could add to your configuration file, and later override from command line if needed? --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |