Skip to content

Commit

Permalink
Merge pull request #857 from online-judge-tools/update-help-messages
Browse files Browse the repository at this point in the history
Add more links to the tutorial from the help text
  • Loading branch information
kmyk committed Feb 20, 2021
2 parents 5bdb705 + acd8ce9 commit 764d2b0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion onlinejudge_command/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@


def get_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(description='Tools for online judge services')
parser = argparse.ArgumentParser(
description='Tools for online judge services',
formatter_class=argparse.RawTextHelpFormatter,
epilog='''\
tips:
The official tutorial exists on the web: https://github.com/online-judge-tools/oj/blob/master/docs/getting-started.md
''',
)
parser.add_argument('-v', '--verbose', action='store_true')
parser.add_argument('-c', '--cookie', type=pathlib.Path, default=utils.default_cookie_path, help='path to cookie. (default: {})'.format(utils.default_cookie_path))
parser.add_argument('--version', action='store_true', help='print the online-judge-tools version number')
Expand Down Expand Up @@ -190,6 +197,8 @@ def get_parser() -> argparse.ArgumentParser:
(both %d and %e are required.)
tips:
For the random testing, you can read a tutorial: https://github.com/online-judge-tools/oj/blob/master/docs/getting-started.md#random-testing
There is a command to automatically generate a input generator, `oj-template` command. See https://github.com/online-judge-tools/template-generator .
This subcommand has also the feature to find a hack case.
Expand Down

0 comments on commit 764d2b0

Please sign in to comment.