Skip to content

Conversation

@JacobCrabill
Copy link
Contributor

This allows the command: union field of a Flags struct to be command: ?union to make subcommands optional. An example demonstrating its use has been added as well.

An additional function, printHelp, has been added to the root flags module to allow users to more easily print help / usage in cases other than parsing errors.

The 'command' field of a Flags struct can now be a '?union'
in addition to a plain 'union'.
@JacobCrabill JacobCrabill mentioned this pull request Aug 17, 2025
Since 'parse' no longer returns an error, and instead exits directly, be
helpful by printing the active Help menu after the error message, for
context on where the error came from and what options exist.
I think I was overflowing the write buffer w/o more frequent flushing
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.

1 participant