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

update!: changed OptCfg fields to separate store key and option name. #51

Merged
merged 5 commits into from
Mar 18, 2024

Conversation

sttk
Copy link
Owner

@sttk sttk commented Mar 17, 2024

Closes #46

This PR changes the fields of the OptCfg struct as follows:

  1. Adds StoreKey field to set the key of the option argument in result option map.
  2. Combines Name and Aliases fields and rename it to Names. (The order of option names in Names field is used in a help text.)
  3. Renames ArgHelp to ArgInHelp.

doc.go Outdated Show resolved Hide resolved
print-help.go Show resolved Hide resolved
parse-with.go Outdated Show resolved Hide resolved
parse-with.go Outdated Show resolved Hide resolved
parse-with.go Outdated Show resolved Hide resolved
@sttk sttk merged commit a887792 into main Mar 18, 2024
12 checks passed
@sttk sttk deleted the update_modify-optcfg-fields branch March 18, 2024 14:27
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.

Ordering of option name and aliases in help
1 participant