diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..1e01b48
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 47e63bd..065a1fd 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,3 @@
-
diff --git a/src/main/java/rife/bld/help/RunHelp.java b/src/main/java/rife/bld/help/RunHelp.java
index c4e5fe8..b7d7392 100644
--- a/src/main/java/rife/bld/help/RunHelp.java
+++ b/src/main/java/rife/bld/help/RunHelp.java
@@ -5,6 +5,7 @@
package rife.bld.help;
import rife.bld.CommandHelp;
+import rife.bld.operations.RunOperation;
import rife.tools.StringUtils;
/**
@@ -19,9 +20,9 @@ public String getSummary() {
}
public String getDescription(String topic) {
- return StringUtils.replace("""
+ return String.format("""
Runs the project.
- Usage : ${topic} [--args=ARGUMENT...]""", "${topic}", topic);
+ Usage : %s [%s=ARG...]""", topic, RunOperation.ARGS_OPTION);
}
-}
+}
\ No newline at end of file
diff --git a/src/main/java/rife/bld/operations/RunOperation.java b/src/main/java/rife/bld/operations/RunOperation.java
index fe766e9..459aba3 100644
--- a/src/main/java/rife/bld/operations/RunOperation.java
+++ b/src/main/java/rife/bld/operations/RunOperation.java
@@ -18,6 +18,7 @@
* @since 1.5
*/
public class RunOperation extends AbstractProcessOperation {
+ public static final String ARGS_OPTION = "--args=";
protected final List runOptions_ = new ArrayList<>();
/**
@@ -60,8 +61,8 @@ public RunOperation fromProject(BaseProject project) {
var arg = args.get(0);
if (arg.startsWith("-")) {
args.remove(0);
- if (arg.startsWith("--args=")) {
- var runArgs = arg.substring(7);
+ if (arg.startsWith(ARGS_OPTION)) {
+ var runArgs = arg.substring(ARGS_OPTION.length());
if (!runArgs.isBlank()) {
runOptions_.addAll(0, Arrays.asList(runArgs.split(" ")));
}