def __init__(self, parser_options):
        self.parser = argparse.ArgumentParser()
        self._name_to_key = defaultdict(lambda: None)

        for k, lk, kwargs in parser_options:
            long_name = lk.lstrip('-')
            # Short keys might be missing, so filter None's
            keys = (i for i in (k, lk) if i is not None)
            self.parser.add_argument(*(keys), **kwargs)
            self.name_to_key[long_name] = k
Initialize argument parser with argument triplets as the following:
dataset/ETHPy150Open StackStorm/st2contrib/packs/chef/actions/lib/shellhelpers.py/CmdlineParser.__init__