Add --no-print-skip option for suppressing SKIP log output
Introduce a new CLI flag --no-print-skip to hide SKIP status lines during sync/delete operations while preserving existing skip behavior and summary counters. Update help output, README, and AGENTS.md to document the new option.
This commit is contained in:
@ -47,6 +47,7 @@ php src/SFTPsync.php --host <host> --user <user> --password <password> [--port <
|
||||
- `--password <password>`: required (or prompted)
|
||||
- `--port <port>`: optional, default `22`
|
||||
- `--print-relative`: show paths relative to action root in logs
|
||||
- `--no-print-skip`: suppress `SKIP` status lines during execution
|
||||
- `--skip <file_or_dir>`: repeatable, applied to `--sync` and `--sync-down`
|
||||
- `--skip-delete <file_or_dir>`: repeatable, applied to `--delete` and `--delete-dir`
|
||||
- `-h`, `--help`: show help
|
||||
@ -108,3 +109,5 @@ After upload/download, mtime is propagated to the target when possible.
|
||||
## Output
|
||||
|
||||
The script prints status lines (`MKDIR`, `UPLOAD`, `DOWNLOAD`, `DELETE`, `RMDIR`, `SKIP`, `ERROR`) and a final summary with operation counters.
|
||||
|
||||
Use `--no-print-skip` if you want to keep skipped-item accounting in the final summary but hide individual `SKIP` log lines during the run.
|
||||
|
||||
Reference in New Issue
Block a user