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

Custom Help Text #124

Merged
merged 3 commits into from
Jul 24, 2023
Merged

Custom Help Text #124

merged 3 commits into from
Jul 24, 2023

Conversation

kchason
Copy link
Contributor

@kchason kchason commented Jul 24, 2023

Allow users of the library to add custom text to the end of the "help" block. This allows support for contact information, example usage, and other notes.

An example usage was added in examples/basic/main.go

Copy link
Member

@tarunKoyalwar tarunKoyalwar left a comment

Choose a reason for hiding this comment

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

lgtm !

$ ./basic -h


Usage:
  ./basic [flags]

Flags:
INFO:
   -n, -name string     name of the user
   -e, -email string[]  email of the user

ADDITIONAL:
   -ph, -phone string       phone of the user
   -add, -address string[]  address of the user
   -ut, -update             update this tool to latest version
   -ms, -max-size value     max file size
   -timeout value           timeout (default 1h0m0s)


EXAMPLE USAGE:
go run ./examples/basic [OPTIONS]

Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

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

lgtm!

@Mzack9999 Mzack9999 added the Type: Enhancement Most issues will probably ask for additions or changes. label Jul 24, 2023
@Mzack9999 Mzack9999 linked an issue Jul 24, 2023 that may be closed by this pull request
@Mzack9999 Mzack9999 merged commit cde1514 into projectdiscovery:main Jul 24, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to set Custom Help Text
3 participants