implement daemon mode argument option

This commit is contained in:
postscriptum 2025-07-03 12:53:59 +03:00
parent 77d0650aef
commit 1e3043d683
4 changed files with 58 additions and 21 deletions

View file

@ -35,7 +35,9 @@ snac2nex -s /path/to/snac/storage -t /path/to/nex -u user1 -u user2
Supported values:
* `c` (`copy`) - copy files * `h` (`hard`) - create hard links * `s` (`soft`) - create soft links (macos, linux, windows only)
* `c` (`copy`) - copy files
* `h` (`hard`) - create hard links
* `s` (`soft`) - create soft links (macos, linux, windows only)
-r, --rotate <ROTATE>
Keep running as the daemon, renew every `n` seconds
@ -62,6 +64,9 @@ snac2nex -s /path/to/snac/storage -t /path/to/nex -u user1 -u user2
-k, --keep
Keep Nex entry on Snac post was removed
-d, --daemon
Disables some debug output
-h, --help
Print help (see a summary with '-h')