Created
December 19, 2019 19:36
-
-
Save miracleyoo/93e3631dbf9b6e2e922136fa5092bb09 to your computer and use it in GitHub Desktop.
[argparse] #python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser( | |
'Please input the file path you want to transfer using --input=""') | |
# Bool | |
parser.add_argument( | |
'--compress', | |
action='store_true', | |
help='Compress the image which is too large') | |
# String | |
parser.add_argument( | |
'--input', | |
type=str, | |
help='Path to the file you want to transfer.') | |
# Integer | |
parser.add_argument( | |
'--out_fps', | |
type=int, | |
default='5', | |
help='The fps of the output video.') | |
args = parser.parse_args() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment