Skip to content

Commit

Permalink
Merge pull request #887 from cai-lw/master
Browse files Browse the repository at this point in the history
Add `test-interactive` and `t/i` as aliases of `test-reactive`
  • Loading branch information
kmyk authored Jul 20, 2021
2 parents fe7cb3b + 7737ffa commit 9ac3448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onlinejudge_command/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def run_program(args: argparse.Namespace, parser: argparse.ArgumentParser) -> in
elif args.subcommand in ['test', 't']:
if not subcommand_test.run(args):
return 1
elif args.subcommand in ['test-reactive', 't/r']:
elif args.subcommand in ['test-reactive', 't/r', 'test-interactive', 't/i']:
if not subcommand_test_reactive.run(args):
return 1
elif args.subcommand in ['generate-output', 'g/o']:
Expand Down
2 changes: 1 addition & 1 deletion onlinejudge_command/subcommand/test_reactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def add_subparser(subparsers: argparse.Action) -> None:
subparsers_add_parser: Callable[..., argparse.ArgumentParser] = subparsers.add_parser # type: ignore
subparser = subparsers_add_parser('test-reactive', aliases=['t/r'], help='test for reactive problem', formatter_class=argparse.RawTextHelpFormatter, epilog='''\
subparser = subparsers_add_parser('test-reactive', aliases=['t/r', 'test-interactive', 't/i'], help='test for interactive problem', formatter_class=argparse.RawTextHelpFormatter, epilog='''\
tips:
You can do similar things with shell
e.g. $ mkfifo a.pipe && ./a.out < a.pipe | python3 judge.py > a.pipe
Expand Down

0 comments on commit 9ac3448

Please sign in to comment.