CefCommandLine

interface CefCommandLine

Class used to create and/or parse command line arguments. Arguments with '--', '-' and, on Windows, '/' prefixes are considered switches. Switches will always precede any arguments without switch prefixes. Switches can optionally have a value specified using the '=' delimiter (e.g. "-switch=value"). An argument of "--" will terminate switch parsing with all subsequent tokens, regardless of prefix, being interpreted as non-switch arguments. Switch names are considered case-insensitive.

Functions

Link copied to clipboard
abstract fun appendArgument(argument: String)
Add an argument to the end of the command line.
Link copied to clipboard
abstract fun appendSwitch(name: String)
Add a switch with an empty value to the end of the command line.
Link copied to clipboard
abstract fun appendSwitchWithValue(name: String, value: String)
Add a switch with the specified value to the end of the command line.
Link copied to clipboard
abstract fun getArguments(): Vector<String>
Get the remaining command line arguments.
Link copied to clipboard
abstract fun getProgram(): String
Get the program part of the command line string (the first item).
Link copied to clipboard
abstract fun getSwitches(): Map<String, String>
Returns the map of switch names and values.
Link copied to clipboard
abstract fun getSwitchValue(name: String): String
Returns the value associated with the given switch.
Link copied to clipboard
abstract fun hasArguments(): Boolean
Tests if there are remaining command line arguments.
Link copied to clipboard
abstract fun hasSwitch(name: String): Boolean
Checks if the command line has a specific switches.
Link copied to clipboard
abstract fun hasSwitches(): Boolean
Checks if the command line has switches.
Link copied to clipboard
abstract fun reset()
Reset the command-line switches and arguments but leave the program component unchanged.
Link copied to clipboard
abstract fun setProgram(program: String)
Set the program part of the command line string (the first item).