parser=argparse.ArgumentParser(description='Detecte les balises !$mnh_expand et !$mnh_end_expand et ajoute un commentaire avant et après pour corriger l\'indentation par la suite avec correct_indentation.py')
value=argparse.ArgumentParser()
parser.add_argument('file1',metavar='file1',type=str,help="file to check")
parser.add_argument('action',metavar='action',type=str,help="action (indent or detect")
args=parser.parse_args()
if"indent"inargs.action:
sys.exit(correct_indent(args.file1))
elif"detect"inargs.action:
sys.exit(detectMNH_expand(args.file1))
else:
sys.exit("Error : action should be indent or detect. Nothing has been done")