From 23d3316b8c158847f7f4bb34fae49ed658058b68 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 14 Jun 2024 04:57:48 +0200 Subject: more doc --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index 22977ae..c1c6b93 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,9 @@ use std::{ pub type Serial = u64; #[derive(Parser)] +/// A tool for safely automating offsite backups over a network struct Args { + /// Path to the configuration file config: PathBuf, #[clap(subcommand)] action: Action, @@ -26,10 +28,14 @@ struct Args { #[derive(Subcommand)] enum Action { + /// Run as a server Daemon, + /// List backups stored on other peers List { + /// Which peers to list backups of; all if not specified peer: Option, }, + /// Download a backup Download { path: PathBuf, /// Which peer to download from, any if not specified @@ -37,6 +43,7 @@ enum Action { /// Serial of the backup to download, latest if not specified serial: Option, }, + /// Upload a backup to one or more peers Upload { /// Path to backup file path: PathBuf, -- cgit v1.2.3-70-g09d2