File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -297,14 +297,14 @@ LOGITECH Z533
297
297
298
298
299
299
## 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 ``` .
301
301
302
302
Example:
303
303
```
304
- python3 main.py --print-all -products
304
+ python3 main.py --list -products
305
305
```
306
306
307
- This will print all the products in the following format:
307
+ This will list all the products in the following format:
308
308
309
309
```
310
310
CATEGORY
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def main() -> None:
41
41
if args .latest_datapoint :
42
42
scraper .print_latest_datapoints (args .name , args .id , args .category )
43
43
44
- if args .print_all_products :
44
+ if args .list_products :
45
45
scraper .print_all_products ()
46
46
47
47
if args .delete :
Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ def argparse_setup() -> argparse.Namespace:
119
119
)
120
120
121
121
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 " ,
125
125
action = "store_true" ,
126
126
)
127
127
You can’t perform that action at this time.
0 commit comments