diff --git a/cleanup-roster.py b/cleanup-roster.py index 4af123a..f85b5e5 100644 --- a/cleanup-roster.py +++ b/cleanup-roster.py @@ -51,13 +51,15 @@ def write_csv(file, student_list, fields, nl = None): csvwriter.writerow(s.get_fields(fields)) parser = argparse.ArgumentParser(description='Clean up downloaded roster from HuskyCT') -parser.add_argument('infile', nargs='?', help='Input file.') +parser.add_argument('infile', help='Input file.') parser.add_argument('-o', nargs='?', default='', const='', help='Output file.') parser.add_argument('-f', nargs='+', default='', help='List of field numbers.') parser.add_argument("-a", action='store_true', default=False, help='Append to the output file.') +parser.add_argument("-v", action='store_true', default=False, help='Verbose.') args = parser.parse_args() -print(args) +if args.v: + print(args) student_list = [] student = None