Author xtreak
Recipients eli.bendersky, rhettinger, scoder, serhiy.storchaka, xtreak
Date 2019-08-25.13:24:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566739456.66.0.852917272432.issue37940@roundup.psfhosted.org>
In-reply-to
Content
There are several modules that expose some of their uses through command line like json.tool, zipfile, tarfile, gzip, webbrowser etc. The initial proposal was to expose the newly added indent function over the command line to provide the same guarantees and semantics. The lxml link lead me to have xpath search looks more useful to me. I understand that there was always discussion over writing few lines of Python code to do the task and to achieve it via command line. Recent addition were around 

* --json-lines added to json.tool in issue31553 
* Add --fast, --best to gzip CLI in issue34969

There were similar discussion where improvements were merged on a case by case basis as seen to be a good use case. Some where more on the side of rejection like --indent to specify indentation length for json.tool in issue29636. There was no xml.tool in the past so there is more consideration to this. I see it good that xml also can expose some of its tasks via command line and not to be left just because it never had a command line interface from the start. The command line API also exposes only the functions already present so I see the maintenance cost to be minimal with indent and xpath search in this case. I will leave it to you as per the examples and use cases mentioned. If it needs a wider discussion on posting to python-ideas/discourse I would be okay to start a thread .
History
Date User Action Args
2019-08-25 13:24:16xtreaksetrecipients: + xtreak, rhettinger, scoder, eli.bendersky, serhiy.storchaka
2019-08-25 13:24:16xtreaksetmessageid: <1566739456.66.0.852917272432.issue37940@roundup.psfhosted.org>
2019-08-25 13:24:16xtreaklinkissue37940 messages
2019-08-25 13:24:16xtreakcreate