Added CLI argument support #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I added support for setting the LOD path, output path and road type using commandline arguments.
The arguments also include an
-autorunparameter, to automatically start the generation, and a-clear-output-on-generateparameter. The path arguments support both absolute and relative paths.All the parameters are documented in the README.md file.
This is useful for launching from mod managers. I for one, use my own build with a portable Mod Organizer 2 instance.
That way, I don't need to remember or even update the paths. All it takes to update the roads is executing the shortcut, if you point the output to a mod folder.
Here's is an example of how I use it:
ACMOS Road Generator.exe -autorun -clear-output-on-generate -l:"../xLODGen/xLODGen_Output" -o:"../ACMOS_Output".Maybe there's a better name for the
-clear-output-on-generateargument, since it's a tad long.