wrobell <wrob...@pld-linux.org> added the comment: an example would be a pdf merger accepting multiple files and allowing to specify list of pages for each input.
at the moment, you can do the following with argparse pdfmerge [pages] input [[pages] input ...] output of course, above is not perfect as you need a bit of heuristic to determine what is "pages" and what is the "input" itself (easy to do, but still...). on other side, i find the following more straightforward pdfmerge [-p pages] input [[-p pages] input ...] output or to complicate things pdfmerge [-p pages] [-s scale] input [[-p pages] [-s scale] input ...] output btw. i understand the argparse limitations, therefore putting this as feature enhancement... if possible :) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15062> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com