Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more links to the tutorial from the help text #857

Merged
merged 1 commit into from
Feb 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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