diff --git a/README.md b/README.md index 791985f..57f5462 100644 --- a/README.md +++ b/README.md @@ -87,9 +87,11 @@ usage: jb [] [ ...] A jsonnet package manager Flags: - -h, --help Show context-sensitive help (also try --help-long and --help-man). + -h, --help Show context-sensitive help (also try --help-long and + --help-man). + --version Show application version. --jsonnetpkg-home="vendor" - The directory used to cache packages in. + The directory used to cache packages in. Commands: help [...] diff --git a/scripts/generate-help-txt.sh b/scripts/generate-help-txt.sh index ddb934d..6f21926 100755 --- a/scripts/generate-help-txt.sh +++ b/scripts/generate-help-txt.sh @@ -1,8 +1,10 @@ #!/usr/bin/env bash BINARY_NAME=jb +GOOS=$(go env GOOS) +GOARCH=$(go env GOARCH) HELP_FILE=$PWD/_output/help.txt echo "$ $BINARY_NAME -h" > $HELP_FILE -PATH=$PATH:$PWD/_output/linux/amd64 $BINARY_NAME -h 2>> $HELP_FILE +$PWD/_output/$GOOS/$GOARCH/$BINARY_NAME 2>> $HELP_FILE exit 0