jjmark15 / quiz-app

MIT License
0 stars 0 forks source link

pass config file path to server as command line argument #47

Closed jjmark15 closed 4 years ago

jjmark15 commented 4 years ago

Background

As of #39 the application always reads from the local.yml config file.

Requirements

Add command line arg parsing to pass the path to the chosen yaml config file.

Describe the solution you'd like

Use clap to parse a command line arg. Could also potentially use structopt for a more struct defined implementation. assert_cmd should be used as a command line testing library.

Additional context

https://crates.io/crates/clap https://crates.io/crates/structopt https://crates.io/crates/assert_cmd