Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

help+printf: Add support for extra help sections, and use them to document printf #66

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

AtkinsSJ
Copy link
Contributor

I realised I never documented how to use the printf builtin, so here is some documentation. And a new feature all commands can use to add extra documentation sections that don't want to appear before the Options.

A command can define this to add extra sections to their help output,
which appear after the list of options:

```
helpSections: { 'title': 'text', 'title 2': 'text 2' }
```

This is useful for commands that require detailed explanation (such as
printf and sed) that you want to be grouped with subheadings, and not
get in the way of reading the options.
@KernelDeimos KernelDeimos merged commit 696178f into HeyPuter:trunk Mar 22, 2024
3 checks passed
@AtkinsSJ AtkinsSJ deleted the printf-again branch March 22, 2024 19:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants