-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
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.
-fNshould reflect-f -N - Arguments should be able to have their arguments, eg.
-t Swiftshould be treated as if we want to have CodeRunner opened with Swift template.