From 2d4fc8755009140f60217664b7ed41f038618c4c Mon Sep 17 00:00:00 2001 From: jamesk Date: Fri, 29 Mar 2024 10:46:28 -0400 Subject: [PATCH] wip clip --- README.md | 32 ++++++++++++++++++++++++++------ src/main.rs | 3 --- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e512df9..cae9e50 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,37 @@ # sys-compare -#### work in progress + +### Modes +```shell +Usage: sys-compare + +Commands: + create + compare + help Print this message or the help of the given subcommand(s) + +Options: + -h, --help Print help +``` ### Create Snapshot -## ./sys-compare create [snapshot] [root_dir] ```shell -cargo run -- create ./test1.snap /home/foxx/Documents/ -cargo run -- create ./test2.snap /home/foxx/Documents/ +Usage: sys-compare create --root-dir --output-path + +Options: + -r, --root-dir + -o, --output-path + -h, --help Print help ``` ### Compare Snapshots -## ./sys-compare compare [.snap] [.snap] [created]|[deleted]|[changed] ```shell -cargo run -- compare ./test1.snap ./test2.snap created +Usage: sys-compare compare [OPTIONS] --left --right + +Options: + -l, --left + -r, --right + -s, --selection + -h, --help Print help ``` ## Development and Collaboration diff --git a/src/main.rs b/src/main.rs index 3d8006c..a6dbfd7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,9 +2,6 @@ pub mod comparemode; pub mod createmode; mod options; - -use std::env::args; -use std::process::exit; use clap::{FromArgMatches, Parser}; use crate::comparemode::CompareMode; use crate::createmode::CreateMode;