code: def add_command_line_options(cls, parser):
          
          if "add_argument" in dir(parser):
              return cls.add_command_line_options_argparse(parser)
          else:
              return cls.add_command_line_options_optparse(parser)
docs: function to inject command line parameters