Пример #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.argument_parsing 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)
Пример #2
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.argument_parsing import getArgumentParser
    from pyanaconda.startup_utils import get_anaconda_version_string

    ap = getArgumentParser(get_anaconda_version_string(), boot_cmdline)

    namespace = ap.parse_args(argv, boot_cmdline=boot_cmdline)
    return (namespace, ap.deprecated_bootargs)
Пример #3
0
 def _parseCmdline(self, argv, version="", boot_cmdline=None):
     ap = argument_parsing.getArgumentParser(version, boot_cmdline)
     opts = ap.parse_args(argv, boot_cmdline=boot_cmdline)
     return (opts, ap.removed_no_inst_bootargs)
Пример #4
0
 def _parseCmdline(self, argv, version="", boot_cmdline=None):
     ap = argument_parsing.getArgumentParser(version, boot_cmdline)
     opts = ap.parse_args(argv, boot_cmdline=boot_cmdline)
     return (opts, ap.deprecated_bootargs)