[docutils:feature-requests] #36 option for disallowing file overwrites

"Günter Milde" via Docutils-develop <[email protected]>
Newsgroups gmane.text.docutils.devel
Message-ID </p/docutils/feature-requests/36/926dbbc990eeb8f100b33096dc41790690cb6512.feature-requests@docutils.p.sourceforge.net>
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 [email protected] 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.