Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command line arguments

myprog.py  data1.xls data2.xls
myprog.py --input data1.xls --output data2.xls
import argparse

parser = argparse.ArgumentParser()
parser.add_argument('--input', required=True)
parser.add_argument('--output',   help="Some description")

args = parser.parse_args()

print(f"input:   {args.input}")
print(f"output: {args.output}")