def command_line_interface(root_path):
    '\n    A simple command-line interface for running a tool to resample a library of template spectra onto fixed\n    logarithmic rasters representing each of the 4MOST arms.\n\n    We use the python argparse module to build the interface, and return the inputs supplied by the user.\n\n    :param root_path:\n        The root path of this 4GP installation; the directory where we can find 4FS.\n\n    :return:\n        An object containing the arguments supplied by the user.\n    '
    parser = argparse.ArgumentParser(description=__doc__.strip())
    parser.add_argument('--templates-in', required=False, default='turbospec_rv_templates', dest='templates_in', help='Library of spectra to use as templates for RV code')
    parser.add_argument('--workspace', dest='workspace', default='', help='Directory where we expect to find spectrum libraries')
    parser.add_argument('--templates-out', required=False, default='rv_templates_resampled', dest='templates_out', help='Library into which to place resampled templates for RV code')
    parser.add_argument('--binary-path', required=False, default=root_path, dest='binary_path', help='Specify a directory where 4FS binary package is installed')
    args = parser.parse_args()
    logging.basicConfig(level=logging.INFO, format='[%(asctime)s] %(levelname)s:%(filename)s:%(message)s', datefmt='%d/%m/%Y %H:%M:%S')
    logger = logging.getLogger(__name__)
    logger.info('Resampling template spectra')
    return args
A simple command-line interface for running a tool to resample a library of template spectra onto fixed
logarithmic rasters representing each of the 4MOST arms.

We use the python argparse module to build the interface, and return the inputs supplied by the user.

:param root_path:
    The root path of this 4GP installation; the directory where we can find 4FS.

:return:
    An object containing the arguments supplied by the user.
def command_line_interface(root_path):
    '\n    A simple command-line interface for running a tool to resample a library of template spectra onto fixed\n    logarithmic rasters representing each of the 4MOST arms.\n\n    We use the python argparse module to build the interface, and return the inputs supplied by the user.\n\n    :param root_path:\n        The root path of this 4GP installation; the directory where we can find 4FS.\n\n    :return:\n        An object containing the arguments supplied by the user.\n    '
    parser = argparse.ArgumentParser(description=__doc__.strip())
    parser.add_argument('--templates-in', required=False, default='turbospec_rv_templates', dest='templates_in', help='Library of spectra to use as templates for RV code')
    parser.add_argument('--workspace', dest='workspace', default=, help='Directory where we expect to find spectrum libraries')
    parser.add_argument('--templates-out', required=False, default='rv_templates_resampled', dest='templates_out', help='Library into which to place resampled templates for RV code')
    parser.add_argument('--binary-path', required=False, default=root_path, dest='binary_path', help='Specify a directory where 4FS binary package is installed')
    args = parser.parse_args()
    logging.basicConfig(level=logging.INFO, format='[%(asctime)s] %(levelname)s:%(filename)s:%(message)s', datefmt='%d/%m/%Y %H:%M:%S')
    logger = logging.getLogger(__name__)
    logger.info('Resampling template spectra')
    return args