Ejemplo n.º 1
0
def parse_arguments(argv=None, boot_cmdline=None):
    """Parse command line/boot options and arguments.

    :param argv: command like arguments
    :param boot_cmdline: boot options
    :returns: namespace of parsed options and a list of deprecated
              anaconda options that have been found
    """
    from pyanaconda.anaconda_argparse import getArgumentParser
    ap = getArgumentParser(startup_utils.get_anaconda_version_string(),
                           boot_cmdline)

    namespace = ap.parse_args(argv, boot_cmdline=boot_cmdline)
    return (namespace, ap.deprecated_bootargs)
Ejemplo n.º 2
0
def parseArguments(argv=None, boot_cmdline=None):
    from pyanaconda.anaconda_argparse import getArgumentParser
    ap = getArgumentParser(getAnacondaVersionString(), boot_cmdline)

    namespace = ap.parse_args(argv, boot_cmdline=boot_cmdline)
    return (namespace, ap.deprecated_bootargs)
Ejemplo n.º 3
0
 def _parseCmdline(self, argv, version="", boot_cmdline=None):
     ap = anaconda_argparse.getArgumentParser(version, boot_cmdline)
     opts = ap.parse_args(argv, boot_cmdline=boot_cmdline)
     return (opts, ap.deprecated_bootargs)
Ejemplo n.º 4
0
def parseArguments(argv=None, boot_cmdline=None):
    from pyanaconda.anaconda_argparse import getArgumentParser
    ap = getArgumentParser(getAnacondaVersionString(), boot_cmdline)

    namespace = ap.parse_args(argv, boot_cmdline=boot_cmdline)
    return (namespace, ap.deprecated_bootargs)
Ejemplo n.º 5
0
 def _parseCmdline(self, argv, version="", boot_cmdline=None):
     ap = anaconda_argparse.getArgumentParser(version, boot_cmdline)
     opts = ap.parse_args(argv, boot_cmdline=boot_cmdline)
     return (opts, ap.deprecated_bootargs)