From 67efb5852b7ee92a3b928046cdd4403b6dce260e Mon Sep 17 00:00:00 2001 From: Joshua Gerrard Date: Mon, 16 Nov 2015 11:06:37 +0000 Subject: [PATCH] Updated Introjucer to use appName rather than hard coding Introjucer --- .../Source/Application/jucer_CommandLine.cpp | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/extras/Introjucer/Source/Application/jucer_CommandLine.cpp b/extras/Introjucer/Source/Application/jucer_CommandLine.cpp index f5b21ef568..9c51d087a4 100644 --- a/extras/Introjucer/Source/Application/jucer_CommandLine.cpp +++ b/extras/Introjucer/Source/Application/jucer_CommandLine.cpp @@ -505,41 +505,43 @@ namespace { hideDockIcon(); - std::cout << "The Introjucer!" << std::endl + const String appName (JUCEApplication::getInstance()->getApplicationName()); + + std::cout << appName << std::endl << std::endl << "Usage: " << std::endl << std::endl - << " introjucer --resave project_file" << std::endl + << " " << appName << " --resave project_file" << std::endl << " Resaves all files and resources in a project." << std::endl << std::endl - << " introjucer --resave-resources project_file" << std::endl + << " " << appName << " --resave-resources project_file" << std::endl << " Resaves just the binary resources for a project." << std::endl << std::endl - << " introjucer --set-version version_number project_file" << std::endl + << " " << appName << " --set-version version_number project_file" << std::endl << " Updates the version number in a project." << std::endl << std::endl - << " introjucer --bump-version project_file" << std::endl + << " " << appName << " --bump-version project_file" << std::endl << " Updates the minor version number in a project by 1." << std::endl << std::endl - << " introjucer --git-tag-version project_file" << std::endl + << " " << appName << " --git-tag-version project_file" << std::endl << " Invokes 'git tag' to attach the project's version number to the current git repository." << std::endl << std::endl - << " introjucer --status project_file" << std::endl + << " " << appName << " --status project_file" << std::endl << " Displays information about a project." << std::endl << std::endl - << " introjucer --buildmodule target_folder module_folder" << std::endl + << " " << appName << " --buildmodule target_folder module_folder" << std::endl << " Zips a module into a downloadable file format." << std::endl << std::endl - << " introjucer --buildallmodules target_folder module_folder" << std::endl + << " " << appName << " --buildallmodules target_folder module_folder" << std::endl << " Zips all modules in a given folder and creates an index for them." << std::endl << std::endl - << " introjucer --trim-whitespace target_folder" << std::endl + << " " << appName << " --trim-whitespace target_folder" << std::endl << " Scans the given folder for C/C++ source files, and trims any trailing whitespace from their lines, as well as normalising their line-endings to CR-LF." << std::endl << std::endl - << " introjucer --remove-tabs target_folder" << std::endl + << " " << appName << " --remove-tabs target_folder" << std::endl << " Scans the given folder for C/C++ source files, and replaces any tab characters with 4 spaces." << std::endl << std::endl - << " introjucer --tidy-divider-comments target_folder" << std::endl + << " " << appName << " --tidy-divider-comments target_folder" << std::endl << " Scans the given folder for C/C++ source files, and normalises any juce-style comment division lines (i.e. any lines that look like //===== or //------- or /////////// will be replaced)." << std::endl << std::endl;