add attachment symlinks option, rename binary option to attachment with export type value

This commit is contained in:
postscriptum 2025-07-02 17:10:02 +03:00
parent 9f24a133ed
commit 20c0aea8f3
6 changed files with 101 additions and 18 deletions

View file

@ -15,9 +15,15 @@ pub struct Config {
#[arg(short, long)]
pub user: Vec<String>,
/// Export binary files (attachments)
#[arg(short, long, default_value_t = false)]
pub binary: bool,
/// Include attachment files export
///
/// Supported values:
///
/// * `c` (`copy`) - copy attachment files
/// * `h` (`hard`) - create hard links
/// * `s` (`soft`) - create soft links (macos, linux, windows only)
#[arg(short, long)]
pub attachment: Option<String>,
/// Keep running as the daemon, renew every `n` seconds
#[arg(short, long)]