Skip to content

Create command line arguments parser #4

@cojoj

Description

@cojoj

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions