Skip to content

Conversation

@starius
Copy link
Contributor

@starius starius commented Oct 6, 2025

When every command has a nested "help" subcommand it is harder to read the documentation.

@starius starius requested a review from a team as a code owner October 6, 2025 23:39
starius added a commit to starius/loop that referenced this pull request Oct 7, 2025
Produce the documentations in man .1 and markdown formats.

The template for markdown was patched to removed column "Environment variables"
Upstream PR: urfave/cli-docs#15

Also the input has to be pre-processed to remove nested "help" subcommands from
each subcommand to improve readability.
Upstream PR: urfave/cli-docs#16
starius added a commit to starius/loop that referenced this pull request Oct 7, 2025
Produce the documentations in man .1 and markdown formats.

The template for markdown was patched to removed column "Environment variables"
Upstream PR: urfave/cli-docs#15

Also the input has to be pre-processed to remove nested "help" subcommands from
each subcommand to improve readability.
Upstream PR: urfave/cli-docs#16
starius added a commit to starius/loop that referenced this pull request Oct 7, 2025
Produce the documentations in man .1 and markdown formats.

The template for markdown was patched to removed column "Environment variables"
Upstream PR: urfave/cli-docs#15

Also the input has to be pre-processed to remove nested "help" subcommands from
each subcommand to improve readability.
Upstream PR: urfave/cli-docs#16
starius added a commit to starius/loop that referenced this pull request Oct 7, 2025
Produce the documentations in man .1 and markdown formats.

The template for markdown was patched to removed column "Environment variables"
Upstream PR: urfave/cli-docs#15

Also the input has to be pre-processed to remove nested "help" subcommands from
each subcommand to improve readability.
Upstream PR: urfave/cli-docs#16
starius added a commit to starius/loop that referenced this pull request Oct 7, 2025
Produce the documentations in man .1 and markdown formats.

The template for markdown was patched to removed column "Environment variables"
Upstream PR: urfave/cli-docs#15

Also the input has to be pre-processed to remove nested "help" subcommands from
each subcommand to improve readability.
Upstream PR: urfave/cli-docs#16
starius added a commit to starius/loop that referenced this pull request Oct 7, 2025
Produce the documentations in man .1 and markdown formats.

The template for markdown was patched to removed column "Environment variables"
Upstream PR: urfave/cli-docs#15

Also the input has to be pre-processed to remove nested "help" subcommands from
each subcommand to improve readability.
Upstream PR: urfave/cli-docs#16
starius added a commit to starius/loop that referenced this pull request Oct 7, 2025
Produce the documentations in man .1 and markdown formats.

The template for markdown was patched to removed column "Environment variables"
Upstream PR: urfave/cli-docs#15

Also the input has to be pre-processed to remove nested "help" subcommands from
each subcommand to improve readability.
Upstream PR: urfave/cli-docs#16
@dearchap
Copy link
Contributor

@starius I'm wondering if someone might want the help in nested subcommands ?

When every command has a nested "help" subcommand it is harder to read the
documentation.
@starius
Copy link
Contributor Author

starius commented Oct 20, 2025

Rebased to resolve conflicts.

@starius
Copy link
Contributor Author

starius commented Oct 20, 2025

@dearchap I don't think nested help command is useful in the documentation. Even if someone reading the docs doesn't know about it, there is a --help flag in each sub-command, so they could use it, getting the same result.

I use cli-docs to generate man and markdown files for Loop documentation and paragraphs for help subcommands are really annoying. Compare how the manual looks without the nested help subcommands:
https://github.com/lightninglabs/loop/blob/master/docs/loop.md
and compare with how it looks if help subcommands are present:
https://gist.github.com/starius/0f67e6dfb2c74b8c0866a65c5d015b75

if command.Hidden {
continue
}
if level > 0 && command.Name == "help" {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering if we need to compare this with helpCommand.Name instead ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants