Skip to content

Commit

Permalink
Use --output for grade file
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinMeimar committed Nov 12, 2024
1 parent 438b214 commit bee1813
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dragon_runner/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __repr__(self) -> str:
f" Debug Package: {self.debug_package}\n"
f" Time: {self.time}\n"
f" Output file: {self.output_file}\n"
f" Verbosity: {self.verbosity}"
f" Verbosity: {self.verbosity}\n"
f" Verify: {self.verify}"
)

Expand Down Expand Up @@ -53,9 +53,9 @@ def parse_cli_args() -> CLIArgs:

parser.add_argument("-v", "--verbosity", action="count", default=0,
help="Increase verbosity level")

parser.add_argument("-o", "--output", action="store_true",
help="Direct the output of dragon-runner to a file")
parser.add_argument("-o", "--output", metavar="FILE",
help="Direct the output of dragon-runner to FILE")

args = parser.parse_args()
if not os.path.isfile(args.config_file):
Expand All @@ -64,7 +64,7 @@ def parse_cli_args() -> CLIArgs:
parser.error("Failure log must be supplied when using grade mode.")
if args.verbosity > 0:
os.environ["DEBUG"] = str(args.verbosity)

return CLIArgs(
config_file = args.config_file,
mode = args.mode,
Expand Down

0 comments on commit bee1813

Please sign in to comment.