Skip to content

Bug: prog name passed into YamlRunner does not include the alias name #54

@TB-1993

Description

@TB-1993

Problem/Opportunity

When running xts <alias name> --help it prints the help message from yaml runner. This displays showing the "prog" name given to YamlRunner followed by available options.

Currently, only xts is passed to YamlRunner meaning when the help message prints it only displays as xts <options> as if the options could be run without using the alias name.

Steps to reproduce

No response

Expected Behavior

The prog name should display as the combination xts and the alias name used, so the usage message displayed is the actual command a user could run.

Usage: xts hello_world [-h] {run} ...

Positional Arguments:
  {run}
    run       Run a command.

Options:
  -h, --help  show this help message and exit

Actual Behavior

The command run here was xts hello_world --help

Usage: xts [-h] {run} ...

Positional Arguments:
  {run}
    run       Run a command.

Options:
  -h, --help  show this help message and exit

But the usage does not show hello_world, instead it displays as if run can be used without the alias name.

Notes (Optional)

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions