parameters: (commandline: str)
return_statement: return {transform(name): val for name, val in args}
docstring: Parse the benchmark example command-line string into a dictionary of command-line arguments
docstring_summary: Parse the benchmark example command-line string into a dictionary of command-line arguments
docstring_tokens: Parse the benchmark example command - line string into a dictionary of command - line arguments
function: def parse_benchmark_commandline(commandline: str) -> Dict[str, str]:
      """ Parse the benchmark example command-line string into a dictionary of command-line arguments
      """
      # Separate the data type option from the example_args portion of the string
      commandline = commandline.replace(",--type=", " --type=")
  
      args = commandline.split()
      # Discard program name
      args = args[1:]
      # Split into a list of (argument name, argument value)
      args = map(lambda arg: arg.split("="), args)
  
      def transform(_name):
          # Strip '-'/"--" if it exists
          _name = _name.lstrip("-")
          return _name
  
      return {transform(name): val for name, val in args}
function_tokens: def parse_benchmark_commandline ( commandline : str ) -> Dict [ str , str ] : # Separate the data type option from the example_args portion of the string commandline = commandline . replace ( ",--type=" , " --type=" ) args = commandline . split ( ) # Discard program name args = args [ 1 : ] # Split into a list of (argument name, argument value) args = map ( lambda arg : arg . split ( "=" ) , args ) def transform ( _name ) : # Strip '-'/"--" if it exists _name = _name . lstrip ( "-" ) return _name return { transform ( name ) : val for name , val in args }