Skip to content

Commit

Permalink
♻️ --help helper
Browse files Browse the repository at this point in the history
  • Loading branch information
UltiRequiem committed Mar 2, 2022
1 parent 6899c75 commit 906704e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ func parametersAndFlags() (bool, bool, []string) {
return *help || *helpShort, flag.NArg() > 0, flag.Args()
}

func printHelp() {
internal.PrintWithScanner(fmt.Sprintf(HELP_MESSAGE, VERSION))
}

const VERSION = "1.0.0"

func printHelp() {
helpMessage := ` Chigo %s
const HELP_MESSAGE = ` Chigo %s
Concatenate FILE(s) or standard input to standard output.
When no FILE is passed read standard input.
Expand All @@ -34,6 +37,3 @@ func printHelp() {
If you need more help, found a bug or want to suggest a new feature:
https://github.com/UltiRequiem/chigo`

internal.PrintWithScanner(fmt.Sprintf(helpMessage, VERSION))
}

0 comments on commit 906704e

Please sign in to comment.