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

Create command line arguments parser #4

Open
4 tasks
cojoj opened this issue Jun 16, 2017 · 0 comments
Open
4 tasks

Create command line arguments parser #4

cojoj opened this issue Jun 16, 2017 · 0 comments

Comments

@cojoj
Copy link
Owner

cojoj commented Jun 16, 2017

As I want to extend the functionality of this project to accept many different arguments to help users with opening CodeRunner in the mode specific for their use case, it'd be necessary to introduce arguments parser.
There are some solutions available out there, but none of them fulfills all requirements I want to have in CodeRunnerCLI. That's why we should have a custom arguments parser.
Below you may find a list of requirements:

  • It should accept path to the file/folder you want to open in CodeRunner without specifying option for it. For that reason it's important to reduce array of arguments until we have one last argument and it'll be path.
  • It should accept bool flags, bot long and short versions eg. -f --force.
  • It should be able to work with cumulated short versions, eg. -fN should reflect -f -N
  • Arguments should be able to have their arguments, eg. -t Swift should be treated as if we want to have CodeRunner opened with Swift template.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant