Skip to content

Create skeleton on app which allows people to easily extend it. #2

@JustCallMeRay

Description

@JustCallMeRay
  • Write a basic entrypoint into the app, this should be a function called main.
  • Check for command line arguments and call the correct functions (avoid using a switch/series of if statements if possible as this is not easily extendable, an ideal solution would have no run time dependencies)
  • Print a help message to the console if the command line argument does not match any of the known features, it should detail all the possible arguments and any possible values those arguments need.
  • Help message should also be shown if the -h or --Help arguments are given
  • Write a unit test to check that a help message is shown.
  • Write a unit test and mock module to check a module can be added without changing the "main" function/file.
  • Change any existing code to function with the new entry point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Open

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions