diff --git a/README.md b/README.md index 780d649d..16989939 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,14 @@ usage: duct [-h] [--version] [-p OUTPUT_PREFIX] [--report-interval REPORT_INTERVAL] [-c {all,none,stdout,stderr}] [-o {all,none,stdout,stderr}] [-t {all,system-summary,processes-samples}] - command ... + command [inner_args ...] ... Gathers metrics on a command and all its child processes. positional arguments: - command The command to execute. + command [inner_args ...] + The command to execute, along with its inner + arguments. inner_args Arguments for the command. options: diff --git a/src/duct.py b/src/duct.py index ce129479..42356c33 100755 --- a/src/duct.py +++ b/src/duct.py @@ -212,7 +212,11 @@ def create_and_parse_args(): description="Gathers metrics on a command and all its child processes.", formatter_class=argparse.ArgumentDefaultsHelpFormatter, ) - parser.add_argument("command", help="The command to execute.") + parser.add_argument( + "command", + metavar="command [inner_args ...]", + help="The command to execute, along with its inner arguments.", + ) parser.add_argument( "--version", action="version", version=f"%(prog)s {__version__}" )