book(foundation for analytics with python) about merge csvs : I am reading book(foundation for analytics with python) and trying to merge csv files. I had search about this issue, and found  many answer. 
but i couldn't apply answers to my issue.

My issue is--> 

> input_path = sys.argv[1] IndexError: list index out of range

my code is -->

    import csv
    import glob
    import os 
    import sys

    input_path = sys.argv[1]
    output_file = sys.argv[2]
    
    first_file = True
    for input_file in glob.glob(os.path.join(input_path, 'csv_*')):
    	print(os.path.basename(input_file))
    	with open(input_file, 'r', newline='') as csv_in_file:
    		with open(output_file, 'a', newline='') as csv_out_file:
    			filereader = csv.reader(csv_in_file)
    			filewriter = csv.writer(csv_out_file)
    			if first_file:
    				for row in filereader:
    					filewriter.writerow(row)
    				first_file = False
    			else:
    				header = next(filereader)
    				for row in filereader:
    					filewriter.writerow(row)

please help me...