-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add better support for command line arguments #702
Add better support for command line arguments #702
Conversation
Current coverage is 53.67% (diff: 43.68%)@@ master #702 diff @@
==========================================
Files 223 225 +2
Lines 7234 7316 +82
Methods 0 0
Messages 0 0
Branches 712 719 +7
==========================================
+ Hits 3881 3927 +46
- Misses 3180 3216 +36
Partials 173 173
|
} | ||
} | ||
|
||
// This will thrown an exception if the port specified by the save file is already taken. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"thrown" should be "throw"
Update comment in core main
51a667d
to
d7f9e6b
Compare
Did you try this in a deployed application? |
If by "deployed" you mean "core app", yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Set the save file with
-f <path>
or--file <path>
Set the HTTP server port with
-p <port>
or--port <port>
Print the version with
-v
or--version
Print help text with
-h
or--help
Set headless mode with
--headless
(UI only)Can pass command line args through gradle with
-Pargs="<args>"
Note: this breaks backwards compatibility with loading files from the command line.