Revision 1446566f ide/QtCreator/QtCreatorSetup.sh
ide/QtCreator/QtCreatorSetup.sh | ||
---|---|---|
793 | 793 |
fi |
794 | 794 |
printf "\n" |
795 | 795 |
|
796 |
# if --help or -h was specified, print the help text and exit |
|
797 |
if [[ $@ == *"--help"* || $@ == *"-h"* ]]; then |
|
798 |
printHelp |
|
799 |
printf "\n" |
|
800 |
quitScript |
|
801 |
fi |
|
802 |
|
|
796 | 803 |
# set log file if specified |
797 | 804 |
if [[ $@ == *"--log"* ]] || [[ $@ == *"--LOG"* ]]; then |
798 | 805 |
# get the parameter (file name) |
... | ... | |
816 | 823 |
printf "\n" |
817 | 824 |
fi |
818 | 825 |
fi |
819 |
|
|
820 | 826 |
# log script name |
821 | 827 |
printLog "this is $(realpath ${BASH_SOURCE[0]})\n" |
822 | 828 |
|
823 |
# if --help or -h was specified, print the help text and exit |
|
824 |
if [[ $@ == *"--help"* || $@ == *"-h"* ]]; then |
|
825 |
printHelp |
|
826 |
printf "\n" |
|
827 |
quitScript |
|
828 |
fi |
|
829 |
|
|
830 | 829 |
# parse arguments |
831 | 830 |
local otherargs=() |
832 | 831 |
while [ $# -gt 0 ]; do |
Also available in: Unified diff