mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
docs: better command line arguments descriptions
This commit is contained in:
parent
897d529e03
commit
595e2bfc42
2 changed files with 6 additions and 6 deletions
|
@ -82,11 +82,11 @@ By issuing `bettercap-ng -h` the main command line options will be shown:
|
||||||
-debug
|
-debug
|
||||||
Print debug messages.
|
Print debug messages.
|
||||||
-eval string
|
-eval string
|
||||||
Run a command, used to set variables via command line.
|
Run one or more commands separated by ; in the interactive session, used to set variables via command line.
|
||||||
-iface string
|
-iface string
|
||||||
Network interface to bind to.
|
Network interface to bind to, if empty the default interface will be auto selected.
|
||||||
-no-history
|
-no-history
|
||||||
Disable history file.
|
Disable interactive session history file.
|
||||||
-silent
|
-silent
|
||||||
Suppress all logs which are not errors.
|
Suppress all logs which are not errors.
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,12 @@ type Options struct {
|
||||||
|
|
||||||
func ParseOptions() (Options, error) {
|
func ParseOptions() (Options, error) {
|
||||||
o := Options{
|
o := Options{
|
||||||
InterfaceName: flag.String("iface", "", "Network interface to bind to."),
|
InterfaceName: flag.String("iface", "", "Network interface to bind to, if empty the default interface will be auto selected."),
|
||||||
Caplet: flag.String("caplet", "", "Read commands from this file and execute them in the interactive session."),
|
Caplet: flag.String("caplet", "", "Read commands from this file and execute them in the interactive session."),
|
||||||
Debug: flag.Bool("debug", false, "Print debug messages."),
|
Debug: flag.Bool("debug", false, "Print debug messages."),
|
||||||
Silent: flag.Bool("silent", false, "Suppress all logs which are not errors."),
|
Silent: flag.Bool("silent", false, "Suppress all logs which are not errors."),
|
||||||
NoHistory: flag.Bool("no-history", false, "Disable history file."),
|
NoHistory: flag.Bool("no-history", false, "Disable interactive session history file."),
|
||||||
Commands: flag.String("eval", "", "Run a command, used to set variables via command line."),
|
Commands: flag.String("eval", "", "Run one or more commands separated by ; in the interactive session, used to set variables via command line."),
|
||||||
}
|
}
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue