parameters: (cmdline)
docstring: Inserts the command and arguments into a command line for parsing.
docstring_summary: Inserts the command and arguments into a command line for parsing.
docstring_tokens: Inserts the command and arguments into a command line for parsing .
function: def CreateCommand(cmdline):
    """Inserts the command and arguments into a command line for parsing."""
    cmd = cmdline.AddCommand(
      ["compare2"],
      "Compares the output of two browsers on the same URL or list of URLs",
      ValidateCompare2,
      ExecuteCompare2)
  
    cmd.AddArgument(
      ["-b1", "--browser1"], "Full path to first browser's executable",
      type="readfile", metaname="PATH", required=True)
    cmd.AddArgument(
      ["-b2", "--browser2"], "Full path to second browser's executable",
      type="readfile", metaname="PATH", required=True)
    cmd.AddArgument(
      ["-b", "--browser"], "Which browser to use", type="string",
      default="chrome")
    cmd.AddArgument(
      ["-b1v", "--browser1ver"], "Version of first browser", metaname="VERSION")
    cmd.AddArgument(
      ["-b2v", "--browser2ver"], "Version of second browser", metaname="VERSION")
    cmd.AddArgument(
      ["-b1n", "--browser1name"], "Optional name for first browser (used in "
      "directory to hold intermediate files)", metaname="NAME")
    cmd.AddArgument(
      ["-b2n", "--browser2name"], "Optional name for second browser (used in "
      "directory to hold intermediate files)", metaname="NAME")
    cmd.AddArgument(
      ["-o", "--outdir"], "Directory to store scrape files", metaname="DIR")
    cmd.AddArgument(
      ["-u", "--url"], "URL to compare")
    cmd.AddArgument(
      ["-l", "--list"], "List of URLs to compare", type="readfile")
    cmd.AddMutualExclusion(["--url", "--list"])
    cmd.AddArgument(
      ["-s", "--startline"], "First line of URL list", type="int")
    cmd.AddArgument(
      ["-e", "--endline"], "Last line of URL list (exclusive)", type="int")
    cmd.AddArgument(
      ["-c", "--count"], "Number of lines of URL file to use", type="int")
    cmd.AddDependency("--startline", "--list")
    cmd.AddRequiredGroup(["--url", "--list"])
    cmd.AddDependency("--endline", "--list")
    cmd.AddDependency("--count", "--list")
    cmd.AddMutualExclusion(["--count", "--endline"])
    cmd.AddDependency("--count", "--startline")
    cmd.AddArgument(
      ["-t", "--timeout"], "Amount of time (seconds) to wait for browser to "
      "finish loading",
      type="int", default=60)
    cmd.AddArgument(
      ["-log", "--logfile"], "File to write output", type="string", required=True)
    cmd.AddArgument(
      ["-sz", "--size"], "Browser window size", default=(800, 600), type="coords")
    cmd.AddArgument(
      ["-m", "--maskdir"], "Path that holds masks to use for comparison")
    cmd.AddArgument(
      ["-d", "--diffdir"], "Path to hold the difference of comparisons that fail")
function_tokens: def CreateCommand ( cmdline ) : cmd = cmdline . AddCommand ( [ "compare2" ] , "Compares the output of two browsers on the same URL or list of URLs" , ValidateCompare2 , ExecuteCompare2 ) cmd . AddArgument ( [ "-b1" , "--browser1" ] , "Full path to first browser's executable" , type = "readfile" , metaname = "PATH" , required = True ) cmd . AddArgument ( [ "-b2" , "--browser2" ] , "Full path to second browser's executable" , type = "readfile" , metaname = "PATH" , required = True ) cmd . AddArgument ( [ "-b" , "--browser" ] , "Which browser to use" , type = "string" , default = "chrome" ) cmd . AddArgument ( [ "-b1v" , "--browser1ver" ] , "Version of first browser" , metaname = "VERSION" ) cmd . AddArgument ( [ "-b2v" , "--browser2ver" ] , "Version of second browser" , metaname = "VERSION" ) cmd . AddArgument ( [ "-b1n" , "--browser1name" ] , "Optional name for first browser (used in " "directory to hold intermediate files)" , metaname = "NAME" ) cmd . AddArgument ( [ "-b2n" , "--browser2name" ] , "Optional name for second browser (used in " "directory to hold intermediate files)" , metaname = "NAME" ) cmd . AddArgument ( [ "-o" , "--outdir" ] , "Directory to store scrape files" , metaname = "DIR" ) cmd . AddArgument ( [ "-u" , "--url" ] , "URL to compare" ) cmd . AddArgument ( [ "-l" , "--list" ] , "List of URLs to compare" , type = "readfile" ) cmd . AddMutualExclusion ( [ "--url" , "--list" ] ) cmd . AddArgument ( [ "-s" , "--startline" ] , "First line of URL list" , type = "int" ) cmd . AddArgument ( [ "-e" , "--endline" ] , "Last line of URL list (exclusive)" , type = "int" ) cmd . AddArgument ( [ "-c" , "--count" ] , "Number of lines of URL file to use" , type = "int" ) cmd . AddDependency ( "--startline" , "--list" ) cmd . AddRequiredGroup ( [ "--url" , "--list" ] ) cmd . AddDependency ( "--endline" , "--list" ) cmd . AddDependency ( "--count" , "--list" ) cmd . AddMutualExclusion ( [ "--count" , "--endline" ] ) cmd . AddDependency ( "--count" , "--startline" ) cmd . AddArgument ( [ "-t" , "--timeout" ] , "Amount of time (seconds) to wait for browser to " "finish loading" , type = "int" , default = 60 ) cmd . AddArgument ( [ "-log" , "--logfile" ] , "File to write output" , type = "string" , required = True ) cmd . AddArgument ( [ "-sz" , "--size" ] , "Browser window size" , default = ( 800 , 600 ) , type = "coords" ) cmd . AddArgument ( [ "-m" , "--maskdir" ] , "Path that holds masks to use for comparison" ) cmd . AddArgument ( [ "-d" , "--diffdir" ] , "Path to hold the difference of comparisons that fail" )