I am trying to run a speech to text script and here is a part of that code where I am getting error:
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-f', dest=file, type=string)
args = parser.parse_args()
print args.file
But I am getting the folllowing error:
NameError: name 'file_name' is not defined