Skip to content

Commit

Permalink
improve help message formatting in build-packages.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
guidomodarelli committed Feb 20, 2025
1 parent 1119c1c commit d87f27e
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions dev-tools/build-packages/build-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,20 @@ build(){
help() {
echo
echo "Usage: $0 [OPTIONS]"
echo " -c, --commit-sha <sha> Set the commit sha of this build."
echo " -a, --app <url/path> Set the location of the .zip file containing the Wazuh plugin."
echo " -b, --base <url/path> Set the location of the .tar.gz file containing the base wazuh-dashboard build."
echo " -s, --security <url/path> Set the location of the .zip file containing the wazuh-security-dashboards-plugin."
echo " -rp, --reportPlugin <url/path> Set the location of the .zip file containing the wazuh-reporting-plugin."
echo " -v, --version <version> Set the version of this build."
echo " --all-platforms Build for all platforms."
echo " --deb Build for deb."
echo " --rpm Build for rpm."
echo " --tar Build for tar."
echo " --production [Optional] The naming of the package will be ready for production."
echo " --arm [Optional] Build for arm64 instead of x64."
echo " --debug [Optional] Debug mode."
echo " --silent [Optional] Silent mode. Will not work if --debug is set."
echo " -r, --revision <revision> [Optional] Set the revision of this build. By default, it is set to 1."
echo " -h, --help Show this help."
echo " -c, --commit-sha <sha> Set the commit sha of this build."
echo " -a, --app <url/path> Set the location of the .zip file containing the Wazuh plugin."
echo " -b, --base <url/path> Set the location of the .tar.gz file containing the base wazuh-dashboard build."
echo " -s, --security <url/path> Set the location of the .zip file containing the wazuh-security-dashboards-plugin."
echo " --all-platforms Build for all platforms."
echo " --deb Build for deb."
echo " --rpm Build for rpm."
echo " --tar Build for tar."
echo " --production [Optional] The naming of the package will be ready for production."
echo " --arm [Optional] Build for arm64 instead of x64."
echo " --debug [Optional] Debug mode."
echo " --silent [Optional] Silent mode. Will not work if --debug is set."
echo " -r, --revision <revision> [Optional] Set the revision of this build. By default, it is set to 1."
echo " -h, --help Show this help."
echo
exit $1
}
Expand Down

0 comments on commit d87f27e

Please sign in to comment.