con / duct

A helper to run a command, capture stdout/stderr and details about running
MIT License
1 stars 1 forks source link

Manually write usage to add -- #53

Closed asmacdo closed 3 weeks ago

asmacdo commented 3 weeks ago

Fixes: https://github.com/con/duct/issues/51

Annoyingly this changes the wrapping/indentation, so I added a newline to the start to make it just as easy to read.

Was:

 duct --help      
usage: duct [-h] [-p OUTPUT_PREFIX] [--sample-interval SAMPLE_INTERVAL] [--report-interval REPORT_INTERVAL] [-c {all,none,stdout,stderr}]
            [-o {all,none,stdout,stderr}] [-t {all,system-summary,processes-samples}]
            command [arguments ...]

Now:

duct --help
usage: 
duct [-h] [-p OUTPUT_PREFIX] [--sample-interval SAMPLE_INTERVAL] [--report-interval REPORT_INTERVAL] [-c {all,none,stdout,stderr}] [-o {all,none,stdout,stderr}] [-t {all,system-summary,processes-samples}] [--] command [arguments ...]

Gathers metrics on a command and all its child processes.