Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indentation in usage line of help of leaf commands #612

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

marckhouzam
Copy link
Contributor

What this PR does / why we need it

In the help output, the usage line of leaf commands was not indented as it is for non-leaf commands.

Which issue(s) this PR fixes

Fixes # N/A

Describe testing done for PR

Before this commit:

~/bin/tanzu.v1.0.0 context list -h
List contexts

Usage:
tanzu context list [flags]
[...]

After the commit:

$  tz context list -h
List contexts

Usage:
  tanzu context list [flags]
[...]

Release note

Fix indentation in usage line of help text of leaf commands

Additional information

Special notes for your reviewer

In the help output, the usage line of leaf commands was not indented
as non-leaf commands.

Before this commit:
```
~/bin/tanzu.v1.0.0 context list -h
List contexts

Usage:
tanzu context list [flags]
[...]
```

After the commit:
```
$  tz context list -h
List contexts

Usage:
  tanzu context list [flags]
[...]
```

Signed-off-by: Marc Khouzam <[email protected]>
@marckhouzam marckhouzam requested a review from a team as a code owner December 10, 2023 20:03
@marckhouzam marckhouzam added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process label Dec 10, 2023
@marckhouzam marckhouzam added this to the v1.2.0 milestone Dec 11, 2023
Copy link
Contributor

@vuil vuil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@marckhouzam marckhouzam merged commit 85ea46d into vmware-tanzu:main Dec 15, 2023
7 checks passed
@marckhouzam marckhouzam deleted the fix/helpIndent branch December 15, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required kind/cleanup Categorizes issue or PR as related to cleaning up code, process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants