Skip to content

Instantly share code, notes, and snippets.

@harajune
Created May 20, 2022 10:42
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