Fix "-help" not showing correctly.

Includes a recode for help
This commit is contained in:
purple 2023-08-15 12:44:10 +02:00
parent 9eeeb6e9ba
commit 90d1fc474a

View file

@ -744,24 +744,37 @@ fi
# help, -help, --help # help, -help, --help
if [[ ( $2 == "help" ) || ( $2 == "-help" ) || ( $2 == "--help" ) ]]; then VCMD="y" if [[ ( $2 == "help" ) || ( $2 == "-help" ) || ( $2 == "--help" ) ]]; then VCMD="y"
log_white "Extensions"
log_bright "-install [name] -i install/update a blueprint extension"
log_bright "-remove [name] -r remove a blueprint extension\n"
if [[ $(cat .blueprint/data/internal/db/developer) == "true"* ]]; then if [[ $(cat .blueprint/data/internal/db/developer) == "true"* ]]; then
log_white "Developer" help_dev_status=""
log_bright "-init initialize development files" help_dev_primary="\x1b[34;1m"
log_bright "-build install/update your development files" help_dev_secondary="\x1b[34m"
log_bright "-export export your development files\n" else
fi help_dev_status=" (disabled)"
help_dev_primary="\x1b[37;1m"
help_dev_secondary="\x1b[30;1m"
fi;
log_white "Misc" echo -e "
log_bright "-version -v returns the blueprint version" \x1b[34;1mExtensions\x1b[0m\x1b[34m
-install [name] -i install/update a blueprint extension
-remove [name] -r remove a blueprint extension
\x1b[0m
log_white "Advanced" ${help_developer_primary}Developer$help_dev_status\x1b[0m${help_developer_secondary}
log_bright "-upgrade (dev) update/reset to a newer (source) version" -init initialize development files
log_bright "-rerun-install rerun the blueprint installation script" -build install/update your development files
-export export your development files
\x1b[0m
\x1b[34;1mMisc\x1b[0m\x1b[34m
-version -v returns the blueprint version
\x1b[0m
\x1b[34;1mAdvanced\x1b[0m\x1b[34m
-upgrade (dev) update/reset to a newer (source) version
-rerun-install rerun the blueprint installation script
\x1b[0m
"
fi fi