Skip to content

Commit 72a069f

Browse files
authored
Update README.md
1 parent 206d5b3 commit 72a069f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ Both input and outputs are the default System.in and System.out, but you can def
1313
Process p = new Process(true);
1414
p.addSystemOutput();
1515
p.addInput(System.in);
16-
p.execute("println \"Hello World\"");
16+
p.execute("println \"Hello World\"", false); //If the process should be executed in a separate thread.
17+
p.execute(new File("path_to_file"), true);
1718
```
19+
You can also execute the script inside the console with the raw jar file.
20+
> java -jar devscript_1.8.2.jar -e "version"
21+
22+
Command line arguments are:<br>
23+
- -e or --execute Executes a script right from the command line
24+
- -f or --file Executes the contents of a text file
25+
- If no argument is passed, the jar opens the default editor, stored in Editor.txt
1826

1927
# Syntax
2028
In this big section, I will try to bring you near the usage and capabillities of the DevScript, so you can use them for your own projects

0 commit comments

Comments
 (0)