|
|
@@ -50,7 +50,6 @@ bool BuildCmd::Parse(const Vector<String>& arguments, unsigned startIndex, Strin
|
|
|
{
|
|
|
String argument = arguments[startIndex].ToLower();
|
|
|
String value = startIndex + 1 < arguments.Size() ? arguments[startIndex + 1] : String::EMPTY;
|
|
|
- String tag = startIndex + 2 < arguments.Size() ? arguments[startIndex + 2] : String::EMPTY;
|
|
|
|
|
|
if (argument != "build")
|
|
|
{
|
|
|
@@ -65,6 +64,32 @@ bool BuildCmd::Parse(const Vector<String>& arguments, unsigned startIndex, Strin
|
|
|
}
|
|
|
|
|
|
buildPlatform_ = value.ToLower();
|
|
|
+
|
|
|
+ for (int i = startIndex + 2; i < arguments.Size(); ++i)
|
|
|
+ {
|
|
|
+ String option = arguments[i].ToLower();
|
|
|
+
|
|
|
+ if (option == "-tag")
|
|
|
+ {
|
|
|
+ if (arguments.Size() == i + 1)
|
|
|
+ {
|
|
|
+ errorMsg = "Missing tag";
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (option == "-autolog")
|
|
|
+ {
|
|
|
+ autoLog_ = true;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ errorMsg = "Invalid option: " + option;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ String tag = startIndex + 2 < arguments.Size() ? arguments[startIndex + 2] : String::EMPTY;
|
|
|
+
|
|
|
assetsBuildTag_ = tag.ToLower();
|
|
|
|
|
|
return true;
|
|
|
@@ -106,6 +131,7 @@ void BuildCmd::Run()
|
|
|
{
|
|
|
buildBase->SetAssetBuildTag(assetsBuildTag_);
|
|
|
}
|
|
|
+ buildBase->SetAutoLog(autoLog_);
|
|
|
|
|
|
// add it to the build system
|
|
|
BuildSystem* buildSystem = GetSubsystem<BuildSystem>();
|