File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -826,11 +826,14 @@ function show_command_help() {
826826 disembark)
827827 echo " Remotely installs the Disembark plugin, connects, and initiates a backup."
828828 echo
829- echo " Usage: _do disembark <url>"
829+ echo " Usage: _do disembark <url> [--debug] "
830830 echo
831831 echo " Arguments:"
832832 echo " <url> (Required) The full URL to the WordPress site."
833833 echo
834+ echo " Flags:"
835+ echo " --debug Runs the browser automation in headed mode (not headless) for debugging."
836+ echo
834837 echo " You will be interactively prompted for an administrator username and password."
835838 ;;
836839 dump)
@@ -1123,6 +1126,8 @@ function main() {
11231126 local exclude_patterns=()
11241127 local backup_exclude_patterns=()
11251128 local positional_args=()
1129+ local quiet_flag=" "
1130+ local debug_flag=" "
11261131
11271132 while [[ $# -gt 0 ]]; do
11281133 case $1 in
@@ -1199,6 +1204,10 @@ function main() {
11991204 quiet_flag=true
12001205 shift
12011206 ;;
1207+ --debug)
1208+ debug_flag=true
1209+ shift
1210+ ;;
12021211 -* )
12031212 # This will catch unknown flags like --foo
12041213 echo " Error: Unknown flag: $1 " >&2
@@ -1331,7 +1340,7 @@ function main() {
13311340 esac
13321341 ;;
13331342 disembark)
1334- run_disembark " ${positional_args[1]} "
1343+ run_disembark " ${positional_args[1]} " " $debug_flag "
13351344 ;;
13361345 dump)
13371346 # There should be exactly 2 positional args total: 'dump' and the pattern.
You can’t perform that action at this time.
0 commit comments