diff options
author | edef <edef@unfathomable.blue> | 2022-05-03 00:08:20 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-05-03 00:08:20 +0000 |
commit | 5c544de74b64fc08029d09d12ecde894b5e78078 (patch) | |
tree | d06f977111d7db68b28f0af2b6294cf4a858e1b1 /ripple/fossil/src/bin/extract.rs | |
parent | bab70406b61e731dd79b8a12ce35772d0f46226b (diff) | |
download | unf-legacy-5c544de74b64fc08029d09d12ecde894b5e78078.tar.zst |
ripple/fossil: use clap
This adds clap to all our binaries. Only add currently takes any args, but previously, the others did not reject args as they should. Change-Id: I6257fb3b218c624ee0124f6ed7313a579db88c4c
Diffstat (limited to 'ripple/fossil/src/bin/extract.rs')
-rw-r--r-- | ripple/fossil/src/bin/extract.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ripple/fossil/src/bin/extract.rs b/ripple/fossil/src/bin/extract.rs index b21a063..cb45896 100644 --- a/ripple/fossil/src/bin/extract.rs +++ b/ripple/fossil/src/bin/extract.rs @@ -2,6 +2,7 @@ // SPDX-License-Identifier: OSL-3.0 use { + clap::StructOpt, fossil::{store, Directory}, prost::Message, std::{ @@ -12,7 +13,12 @@ use { }, }; +#[derive(clap::Parser)] +struct Args {} + fn main() { + let _args = Args::parse(); + let store = fossil::Store::open("fossil.db").unwrap(); let root = { let mut stdin = io::stdin(); |