igumnoff / shiva

Shiva library: Implementation in Rust of a parser and generator for documents of any type
https://docs.rs/shiva
GNU General Public License v3.0
159 stars 10 forks source link

Add "clap" to "server" #60

Closed evgenyigumnov closed 3 months ago

evgenyigumnov commented 3 months ago

clap = { version = "4.5.3", features = ["derive"] }

launch example:

./server --port=8080 --host=127.0.0.1

if port and host absend should be set default values

https://github.com/igumnoff/shiva/blob/main/cli/src/main.rs