# -*- coding: future_fstrings -*-
import sys

from scabha import config, parse_parameters, prun

# If a list of fields is given, insert them as repeated arguments.
# Other arguments not allowed to be lists.
args = [config.binary] + parse_parameters(repeat=None,
                                          positional=["ms"], mandatory=["ms"],
                                          repeat_dict={'field-names':','})

# run the command
if prun(args) is not 0:
    sys.exit(1)
