From adc7716dff0794287f4709107314b56b630c336b Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Wed, 21 Jun 2023 08:19:39 +0200 Subject: [PATCH] Update __main__.py --- src/music_kraken/__main__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/music_kraken/__main__.py b/src/music_kraken/__main__.py index 8aab5a9..0425d5d 100644 --- a/src/music_kraken/__main__.py +++ b/src/music_kraken/__main__.py @@ -1,4 +1,4 @@ -if __name__ == "__main__": +def cli(): import argparse parser = argparse.ArgumentParser( @@ -17,7 +17,7 @@ if __name__ == "__main__": ) parser.add_argument( - '-p', '--force-post-process', + '-m', '--force-post-process', action="store_true", help="If a to downloaded thing is skipped due to being found on disc,\nit will still update the metadata accordingly." ) @@ -122,4 +122,8 @@ if __name__ == "__main__": download_all=arguments.all, direct_download_url=arguments.url, process_metadata_anyway=arguments.force_post_process or arguments.test - ) \ No newline at end of file + ) + + +if __name__ == "__main__": + cli()