David Kastrup wrote > Eluze < > eluzew@
> > writes: > >> carried away by my success in contributing a little patch for convert-ly >> in >> Python and inspired by dak's sentence "numbered backups tend to >> accumulate" >> (sorry I can't remember exactly where that was) I tried a new patch to >> get >> rid of these numerous backups: >> >> -k --clean-numbered-backup - "clean numbered backups >> [filename.ext.~number~]" >> >> surely it's also not difficult to find these backups with an explorer and >> an >> appropriate regex and to delete them manually. >> >> for me it was an occasion to learn more about Python and regex. and tbh >> it >> took me much more time than the result would let you think. >> >> if somebody feels this is usable or useful please add it to convert-ly. > > As you said: this is easy to do with shell patterns anyway. Easier to > look up a rarely used option, and more flexible (you can do it for one > or multiple files). that's possible, too. eg. you can write convert-ly -beck *.ly or convert-ly --clean-numbered-backup test1.ly test5.ly > So I'd lean towards not doing anything here. > >> another (not really related) topic: >> >> during the discussion about numbered backups I discovered that you can >> easily write "convert-ly -beck" whereas I used to write -b -e -c -k - >> I >> don't think I've seen this is mentioned in the AU but it is much easier >> to >> write! > > convert -ed is frequently mentioned on the list. . on the list but not in the doc >> so I suggest to add a short note like: >> >> boolean parameters like e, c, d, b … can be collected after a single "-", >> eg. -bec > > It's usually not just booleans, though some utilities differ how they > accumulate options with parameters. So sometimes you can write > > -xyz paramx paramy paramz > > but sometimes the interpretation instead leads to > > -xparamx -yparamy -zparamz > >> in the end of the chapter *2.3 Command line options for convert-ly* > > This is usually assumed to be common knowledge, but of course it's > "common knowledge" mostly with people accustomed to Unix. and I'm not one of those altogether I'm not insisting in adding this feature, it's just a proposal. Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/clean-numbered-backups-with-convert-ly-tp152870p152874.html Sent from the Bugs mailing list archive at Nabble.com. _______________________________________________ bug-lilypond mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-lilypond
