advotracker: commandline parsing support

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2019-10-30 23:44:47 +01:00
parent cb4c96ee63
commit 5fa9ff945f
2 changed files with 30 additions and 0 deletions

View File

@@ -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" ]

25
src/cli.yml Normal file
View File

@@ -0,0 +1,25 @@
name: AdvoTracker
version: "0.0.1"
author: Ralf Zerres <ralf.zerres@networkx.de>
#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 <ralf.zerres@networkx.de>
args:
- debug:
short: d
help: print debug information