Update __main__.py
This commit is contained in:
parent
ae547c7de2
commit
adc7716dff
@ -1,4 +1,4 @@
|
|||||||
if __name__ == "__main__":
|
def cli():
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
@ -17,7 +17,7 @@ if __name__ == "__main__":
|
|||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-p', '--force-post-process',
|
'-m', '--force-post-process',
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="If a to downloaded thing is skipped due to being found on disc,\nit will still update the metadata accordingly."
|
help="If a to downloaded thing is skipped due to being found on disc,\nit will still update the metadata accordingly."
|
||||||
)
|
)
|
||||||
@ -123,3 +123,7 @@ if __name__ == "__main__":
|
|||||||
direct_download_url=arguments.url,
|
direct_download_url=arguments.url,
|
||||||
process_metadata_anyway=arguments.force_post_process or arguments.test
|
process_metadata_anyway=arguments.force_post_process or arguments.test
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
cli()
|
||||||
|
Loading…
Reference in New Issue
Block a user