Skip to content

Instantly share code, notes, and snippets.

@harajune
Created May 20, 2022 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harajune/5b3cb3567f0418e62a8d8d07080c2820 to your computer and use it in GitHub Desktop.
Save harajune/5b3cb3567f0418e62a8d8d07080c2820 to your computer and use it in GitHub Desktop.
def parseArguments():
parser = argparse.ArgumentParser()
parser.add_argument('--out', help='output file path', required=True)
parser.add_argument('--in1', help='first input pdf path', required=True)
parser.add_argument('--in2', help='second input pdf path', required=True)
parser.add_argument('--reverse1', help='reverse first pdf page order', action='store_true')
parser.add_argument('--reverse2', help='reverse second pdf page order', action='store_true')
return parser.parse_args()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment