Skip to content

Using subcommands instead of using options #53

@sreesh-mallya

Description

@sreesh-mallya

I've some suggestions too: How about using subcommands instead of using options for logging in, getting the problem description, listing contests, and submitting code?

Maybe something like:

  • codechefcli login to login
  • codechefcli problem WEICOM to get the problem description
  • codechefcli problem --level easy or codechefcli problem --search easy to search for problems based on difficulty
  • codechefcli contests to list contests
  • codechefcli submit WEICOM /path/to/solution/file C++ to submit a solution. Maybe we can use options here.

How about we use typer, instead of argparse?

Originally posted by @sreesh-mallya in #51 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions