krieselreihe / litr

Litr (Language Independent Task Runner) lets you configure and then run any tasks you want for any language.
MIT License
8 stars 0 forks source link

Parameters list not properly aligned inside help text #53

Closed MartinHelmut closed 2 years ago

MartinHelmut commented 2 years ago

Description

Given the following configuration:

[commands]
[commands.update]
script = "git pull && git fetch --prune && yarn"
description = "Update this repository."

[commands.open]
script = "openapp %{link}"
description = "Open an App link inside the running simulator."

[params.link]
shortcut = "l"
description = "Link to open inside the running App simulator."

The following help is generated:

Litr - Language Independent Task Runner [version 1.0.0-alpha.3]
  Configuration file found under: /.litr.toml

Usage: litr command [options]

Commands:
  open    --link=<option>
             Open an App link inside the running simulator.
  update     Update this repository to the latest and run install commands.

Options:
  -h --help  Show this screen.
  -v --version Show current Litr version.
  -l --link  Link to open inside the running App simulator.

Problem

The parameters are not properly aligned inside the help text. They should all be 2 spaces after the version flag.

MartinHelmut commented 2 years ago

Ref: https://github.com/krieselreihe/litr/blob/main/src/client/Client/Hooks/Help.cpp#L297