Conversation
optparse-applicative offers a `header` or a `footer` info modifier, but
they both put the text in the wrong place: either above or below
everything. To get the text to appear after the one-line description,
but before the options, we need to manually append it.
Here is the updated help,
```console
% stackctl deploy --help
Usage: stackctl deploy [-p|--parameter KEY=[VALUE]] [-t|--tag KEY=[VALUE]]
[--save-change-sets DIRECTORY] [--no-confirm]
[--no-remove] [--clean]
Deploy specifications
By default, this will operate on the entire stack collection. To operate on a
specific stack or set of stacks, use the --filter argument to filter the
collection by file path.
Available options:
-p,--parameter KEY=[VALUE]
Override the given Parameter for this operation
-t,--tag KEY=[VALUE] Override the given Tag for this operation
--save-change-sets DIRECTORY
Save executed changesets to DIRECTORY
--no-confirm Don't confirm changes before executing
--no-remove Don't delete removed Stacks
--clean Remove all changesets from Stack after deploy
-h,--help Show this help text
Global options:
-d,--directory PATH Use the stack collection located at PATH (default:
current working directory)
--filter PATTERN[,PATTERN]
Filter specifications to match PATTERN(s)
--color auto|always|never
When to colorize output
-v,--verbose Increase verbosity (can be passed multiple times)
--auto-sso WHEN Automatically run aws-sso-login if necessary?
```
NOTE: `fullDescr` was removed because it is the default.
`helpShowGlobals` was added because it was an oversight to not have it
before.
chris-martin
approved these changes
Oct 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
optparse-applicative offers a
headeror afooterinfo modifier, butthey both put the text in the wrong place: either above or below
everything. To get the text to appear after the one-line description,
but before the options, we need to manually append it.
Here is the updated help,
NOTE:
fullDescrwas removed because it is the default.helpShowGlobalswas added because it was an oversight to not have itbefore.