You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
-f
--force
.-fN
should reflect-f -N
-t Swift
should be treated as if we want to have CodeRunner opened with Swift template.The text was updated successfully, but these errors were encountered: