Skip to content

Commit 2410268

Browse files
committed
Change behaviour of -t flag in aoc run command
1 parent 9544b6c commit 2410268

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,12 @@ Day 0 - Part 2: 55
5151
This command will run the solution for the given day using `data/00_input.txt` file and print the answers
5252
for both parts.
5353

54-
If you also want to see the result for the test data, you can use the `-t/--test-data` flag.
54+
If you want to see the result only for the test data, you can use the `-t/--test-data` flag.
5555
```sh
5656
$ aoc run <day> -t
5757
Using data from 00_test_input.txt
5858
Day 0 - Part 1: 1
5959
Day 0 - Part 2: 10
60-
61-
Using data from 00_input.txt
62-
Day 0 - Part 1: 1
63-
Day 0 - Part 2: 55
6460
```
6561

6662
### Verifying solution

src/aoc/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def run_challenge(day: int, test_data: bool):
2727
module = import_challenge_module(day)
2828
if test_data:
2929
module.Challenge(use_test_data=True).run()
30-
module.Challenge(use_test_data=False).run()
30+
else:
31+
module.Challenge(use_test_data=False).run()
3132

3233

3334
@app.command()

0 commit comments

Comments
 (0)