#!/usr/bin/python3 # -*- coding: utf-8 -*- """ https://docs.python.org/3/howto/argparse.html https://docs.python.org/3/library/argparse.html#module-argparse https://docs.python.org/3/library/getopt.html """ import argparse parser = argparse.ArgumentParser() parser.add_argument("-o", "--open-file", help="Description", required=True) parser.add_argument("-s", "--save-file", help="Description", required=True) args = parser.parse_args() print(args) print(args.open_file) print(args.save_file)