class_docstr: Simple class for commandline arguments parsing.
  
  `CmdlineParser` provides a simple interface to interpret commandline arguments
  and create new commandlines. This class exposes an interface to transform a list of strings
  representing the commandline in a dictionary of key-value conserving the order of
  the arguments, the value of named arguments, be it boolean, single-valued or multiple ones,
  as well as handling the definition of argument through the `=` sign.
  
  Attributes
  ----------
  arguments : dict
      Commandline arguments' name and value(s).
  template : list
      List of template-ready strings for formatting.
  
  See Also
  --------
  parse : Parse the list of string and defines the form of the template.
  
  Notes
  -----
  Subcommands are not supported and will be likely lead to bad interpretation of the commandline.
  Aggregation of single characters arguments is not supported yet. Ex: `-xzvf`
code: def _key_to_arg(arg):
      if len(arg) > 1:
          return "--" + arg
  
      return "-" + arg
  
file_path: orion/src/orion/core/io/cmdline_parser.py
imports: import os
  from collections import OrderedDict
label_desc: Use image node_id 6 for calling the CmdlineParser obj's underlying member method code with example usage: obj._key_to_arg(arg) and returns: unknown, unknown