Skip to content

Commands

Aditya Kumar edited this page Sep 17, 2020 · 1 revision

Usage

cpcli --help
usage: cpcli [-h] [-t TEMPLATE] [-c CONTEST_URI]
             {download,init,run,show,testcase} ...

Competitive Programming Helper

positional arguments:
  {download,init,run,show,testcase}

optional arguments:
  -h, --help            show this help message and exit
  -t TEMPLATE, --template TEMPLATE
                        Competitive programming template file
  -c CONTEST_URI, --contest-uri CONTEST_URI
                        Uri format should be: <platform-prefix>::<contest-name>
                        Contest Prefixes Supported: {'cc': 'Codechef', 'cf': 'Codeforces'}
                        Eg:
                        Codeforces: cf::1382
                        Codechef: cc::JUNE20A

Contest URI

To specify a platform and a contest, we require a URI created based on the platform and the contest details. For example:

  1. Codeforces
    • The URI is created using the contest ID with the cf:: prefix [cf stands for codeforces]
    • URI for the round Codeforces Round #661 (Div. 3) is cf::1399. Here 1399 is the contest ID. You can get it directly from the contest URL - https://codeforces.com/contest/1399/ .
  2. Codechef
    • The URI is created using the contest name/ID with the cc:: prefix [cc stands for codechef]
    • URI for the round September Challenge 2020 Division 1 is cc::SEPT20A. Here SEPT20A is the contest name/ID. You can get it directly from the contest URL - https://www.codechef.com/SEPT20A .

NOTE: The contest URI is case sensitive.

Checkout all the other commands available: