Add basic arguments
--destination --chapter-start --notify
This commit is contained in:
parent
5df275fba9
commit
e65e16d37b
|
@ -1,4 +1,21 @@
|
||||||
import requests
|
"""
|
||||||
|
Manga checker and downloader
|
||||||
|
"""
|
||||||
|
|
||||||
response = requests.get('https://httpbin.org/ip')
|
import argparse
|
||||||
print('Code is {0}.'.format(response.status_code))
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
parser = argparse.ArgumentParser(
|
||||||
|
description="Check for manga updates and download them."
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'-d', '--destination', type=str, required=True, help="Target destination where the download file should be saved."
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'-s', '--chapter-start', type=int, default=1, help="From which chapter should the program check."
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'-n', '--notify', type=str, default=None, help="Apprise notification string."
|
||||||
|
)
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
Loading…
Reference in New Issue