From 5fa9ff945f37123c1a11f8fa06a1a2339e3eb811 Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Wed, 30 Oct 2019 23:44:47 +0100 Subject: [PATCH] advotracker: commandline parsing support Signed-off-by: Ralf Zerres --- Cargo.toml | 5 +++++ src/cli.yml | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/cli.yml diff --git a/Cargo.toml b/Cargo.toml index 7bbe797..5b1d943 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,8 @@ license = "MIT" #opt-level = "3" # optimize to smallest size opt-level = "z" + +[dependencies.clap] +version = "2.33" +default-features = false +features = [ "suggestions", "color", "yaml" ] diff --git a/src/cli.yml b/src/cli.yml new file mode 100644 index 0000000..e6f7823 --- /dev/null +++ b/src/cli.yml @@ -0,0 +1,25 @@ +name: AdvoTracker +version: "0.0.1" +author: Ralf Zerres +#about: AdvoTracker unterstützt Anwälte bei der Erfassung relevanter Mandatsdaten in einer Online-Beratung +about: AdvoTracker supports lawyers to capture relevant data encountered during an online legal advice +args: + - config: + short: c + long: config + value_name: FILE + help: Sets a custom config file + takes_value: true + - verbose: + short: v + multiple: true + help: Sets the level of verbosity +subcommands: + - test: + about: controls testing features + version: "0.1" + author: Ralf Zerres + args: + - debug: + short: d + help: print debug information \ No newline at end of file