Skip to content

Instantly share code, notes, and snippets.

@miracleyoo
Created December 19, 2019 19:36
Show Gist options
  • Save miracleyoo/93e3631dbf9b6e2e922136fa5092bb09 to your computer and use it in GitHub Desktop.
Save miracleyoo/93e3631dbf9b6e2e922136fa5092bb09 to your computer and use it in GitHub Desktop.
[argparse] #python
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