Fix "-help" not showing correctly.
Includes a recode for help
This commit is contained in:
parent
9eeeb6e9ba
commit
90d1fc474a
1 changed files with 29 additions and 16 deletions
45
blueprint.sh
45
blueprint.sh
|
@ -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"
|
||||||
log_white "Misc"
|
help_dev_secondary="\x1b[30;1m"
|
||||||
log_bright "-version -v returns the blueprint version"
|
fi;
|
||||||
|
|
||||||
log_white "Advanced"
|
|
||||||
log_bright "-upgrade (dev) update/reset to a newer (source) version"
|
|
||||||
log_bright "-rerun-install rerun the blueprint installation script"
|
|
||||||
|
|
||||||
|
echo -e "
|
||||||
|
\x1b[34;1mExtensions\x1b[0m\x1b[34m
|
||||||
|
-install [name] -i install/update a blueprint extension
|
||||||
|
-remove [name] -r remove a blueprint extension
|
||||||
|
\x1b[0m
|
||||||
|
|
||||||
|
${help_developer_primary}Developer$help_dev_status\x1b[0m${help_developer_secondary}
|
||||||
|
-init initialize development files
|
||||||
|
-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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue