Skip to content

Commit 4db2745

Browse files
authored
Merge pull request #251 from Crinibus/rename-argument-print-all-products
Rename argument 'print-all-products' to 'list-products'
2 parents 96ea871 + 49a821d commit 4db2745

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,14 @@ LOGITECH Z533
297297

298298

299299
## View all products <a name="view-all-products"></a>
300-
To view all the products you have scraped, you can use the argument ```--print-all-products```.
300+
To view all the products you have scraped, you can use the argument ```--list-products```.
301301

302302
Example:
303303
```
304-
python3 main.py --print-all-products
304+
python3 main.py --list-products
305305
```
306306

307-
This will print all the products in the following format:
307+
This will list all the products in the following format:
308308

309309
```
310310
CATEGORY

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def main() -> None:
4141
if args.latest_datapoint:
4242
scraper.print_latest_datapoints(args.name, args.id, args.category)
4343

44-
if args.print_all_products:
44+
if args.list_products:
4545
scraper.print_all_products()
4646

4747
if args.delete:

scraper/arguments.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ def argparse_setup() -> argparse.Namespace:
119119
)
120120

121121
parser.add_argument(
122-
"--print-all-products",
123-
help="print the names, websites and ids of all products",
124-
dest="print_all_products",
122+
"--list-products",
123+
help="lists the names, websites and ids of all products",
124+
dest="list_products",
125125
action="store_true",
126126
)
127127

0 commit comments

Comments
 (0)