logging.basicConfig(level=logging.WARNING)
#----------- Templates Part ---------------#
-begin_catalog_file = """#-*-coding:iso-8859-1-*-
-#
+begin_catalog_file = """#
# Copyright (C) 2008-2017 EDF R&D
#
# This file is part of SALOME ADAO module
from argparse import ArgumentParser
usage = "usage: %(prog)s [options] catalog_path catalog_name"
version="%(prog)s 0.1"
-my_parser = ArgumentParser(usage=usage, version=version)
+my_parser = ArgumentParser(usage=usage)
+my_parser.add_argument('-v', '--version', action='version', version=version)
my_parser.add_argument('catalog_path')
my_parser.add_argument('catalog_name')
args = my_parser.parse_args()