Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Jul 24, 2023
1 parent 310be6f commit e4fc5d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ func (l *Launcher) Context(ctx context.Context) *Launcher {
return l
}

// Set a command line argument when launching the browser. Be careful the first argument is a flag name,
// it shouldn't contain values. The values the will be joined with comma.
// Set a command line argument when launching the browser.
// Be careful the first argument is a flag name, it shouldn't contain values. The values the will be joined with comma.
// A flag can have multiple values. If no values are provided the flag will be a boolean flag.
// You can use the [Launcher.FormatArgs] to debug the final CLI arguments.
// List of available flags: https://peter.sh/experiments/chromium-command-line-switches
func (l *Launcher) Set(name flags.Flag, values ...string) *Launcher {
name.Check()
l.Flags[name.NormalizeFlag()] = values
Expand Down

0 comments on commit e4fc5d8

Please sign in to comment.