Last active 1728456607

gestion des options

nithir's Avatar nithir revised this gist 1728456606. Go to revision

1 file changed, 18 insertions

argument.py(file created)

@@ -0,0 +1,18 @@
1 + #!/usr/bin/python3
2 + # -*- coding: utf-8 -*-
3 +
4 + import argparse
5 +
6 + PARSER = argparse.ArgumentParser(
7 + description="Constitue une base de donnée \
8 + des urls téléchargeable par dPluzz.")
9 +
10 + PARSER.add_argument("-d",
11 + "--download",
12 + action="store_true",
13 + help="Télécharge avec dPluzz les urls correspondants aux titres filtré par motif.")
14 +
15 + ARGS = PARSER.parse_args()
16 +
17 + if ARGS.download:
18 + do_download()
Newer Older