Skip to content
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 a nice way to do command line arguments #154

Open
BenjaFriend opened this issue May 31, 2020 · 0 comments
Open

Add a nice way to do command line arguments #154

BenjaFriend opened this issue May 31, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@BenjaFriend
Copy link
Member

Right now we don't have any good way to handle command line arguments outside of the core Engine.cpp file. We should have a good, easily accessible command line argument parser. This could go hand in hand with refactoring our config file parser to take an approach similar to UE, which has "Config Variables" that you can set via ini files or special C++ variables.

That may be more work than it's worth though, and we can probably get away with a simple command line parser with a layout like this:

./Sandboxe.exe -KeyString=Value -KeyInt=12 -keyString="I like this format" -BoolFlag

If you add a bool flag, then just adding -BoolFlag will automatically be set to true. We should still allow for you to explicitly say -BoolFag=OFF though, so that users can use some environment variables as well.

@BenjaFriend BenjaFriend added enhancement New feature or request good first issue Good for newcomers labels May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant