Module mozrunner::firefox_args

source ·
Expand description

Argument string parsing and matching functions for Firefox.

Which arguments Firefox accepts and in what style depends on the platform. On Windows only, arguments can be prefixed with / (slash), such as /screenshot. Elsewhere, including Windows, arguments may be prefixed with both single (-screenshot) and double (--screenshot) dashes.

An argument’s name is determined by a space or an assignment operator (=) so that for the string -foo=bar, foo is considered the argument’s basename.

Enums

  • Represents a Firefox command-line argument.

Functions

  • Given an iterator over all arguments, get the value of an argument
  • Parse an iterator over arguments into an vector of (name, value) tuples