Skip to content

Instantly share code, notes, and snippets.

@harajune
Created May 20, 2022 09:14
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/42e9e40da401f97c91ddd0c081c71030 to your computer and use it in GitHub Desktop.
Save harajune/42e9e40da401f97c91ddd0c081c71030 to your computer and use it in GitHub Desktop.
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')
args = parser.parse_args()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment