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

NONE: remove an unimportant subcommand #505

Merged
merged 1 commit into from
Aug 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions onlinejudge/_implementation/command/get_standings.py

This file was deleted.

11 changes: 0 additions & 11 deletions onlinejudge/_implementation/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from onlinejudge._implementation.command.download import download
from onlinejudge._implementation.command.generate_input import generate_input
from onlinejudge._implementation.command.generate_output import generate_output
from onlinejudge._implementation.command.get_standings import get_standings
from onlinejudge._implementation.command.login import login
from onlinejudge._implementation.command.split_input import split_input, split_input_auto_footer
from onlinejudge._implementation.command.submit import submit
Expand Down Expand Up @@ -260,14 +259,6 @@ def get_parser() -> argparse.ArgumentParser:
subparser.add_argument('-c', '--command', default='./a.out', help='your solution to be tested. (default: "./a.out")')
subparser.add_argument('judge', help='judge program using standard I/O')

# get standings
subparser = subparsers.add_parser('get-standings', help='get and print the standings (experimental)', formatter_class=argparse.RawTextHelpFormatter, epilog='''\
supported services:
Topcoder (Marathon Match)
''')
subparser.add_argument('url')
subparser.add_argument('-f', '--format', choices=['csv', 'tsv', 'json'], default='tsv', help='default: tsv')

return parser


Expand Down Expand Up @@ -295,8 +286,6 @@ def run_program(args: argparse.Namespace, parser: argparse.ArgumentParser) -> No
generate_input(args)
elif args.subcommand == 'split-input':
split_input(args)
elif args.subcommand == 'get-standings':
get_standings(args)
else:
parser.print_help(file=sys.stderr)
sys.exit(1)
Expand Down