flags

package
v0.117.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package flags ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flag

type Flag string

Flag name of a command line argument of the browser, also known as command line flag or switch. List of available flags: https://peter.sh/experiments/chromium-command-line-switches

const (
	// UserDataDir https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md
	UserDataDir Flag = "user-data-dir"

	// Headless mode. Whether to run browser in headless mode. A mode without visible UI.
	Headless Flag = "headless"

	// App flag.
	App Flag = "app"

	// RemoteDebuggingPort flag.
	RemoteDebuggingPort Flag = "remote-debugging-port"

	// NoSandbox flag.
	NoSandbox Flag = "no-sandbox"

	// ProxyServer flag.
	ProxyServer Flag = "proxy-server"

	// WindowSize flag.
	WindowSize Flag = "window-size"

	// WindowPosition flag.
	WindowPosition Flag = "window-position"

	// WorkingDir flag.
	WorkingDir Flag = "rod-working-dir"

	// Env flag.
	Env Flag = "rod-env"

	// XVFB flag.
	XVFB Flag = "rod-xvfb"

	// ProfileDir flag.
	ProfileDir = "profile-directory"

	// Preferences flag.
	Preferences Flag = "rod-preferences"

	// Leakless flag.
	Leakless Flag = "rod-leakless"

	// Bin is the browser executable file path. If it's empty, launcher will automatically search or download the bin.
	Bin Flag = "rod-bin"

	// KeepUserDataDir flag.
	KeepUserDataDir Flag = "rod-keep-user-data-dir"

	// Arguments for the command. Such as
	//     chrome-bin http://a.com http://b.com
	// The "http://a.com" and "http://b.com" are the arguments.
	Arguments Flag = ""
)

TODO: we should automatically generate all the flags here.

func (Flag) Check

func (f Flag) Check()

Check if the flag name is valid.

func (Flag) NormalizeFlag

func (f Flag) NormalizeFlag() Flag

NormalizeFlag normalize the flag name, remove the leading dash.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL