Fall back to showing GraphViz source when GraphViz is not installed

This commit is contained in:
Lucien Greathouse
2019-01-29 18:10:14 -08:00
parent 8757834e07
commit 6719be02c3
6 changed files with 37 additions and 14 deletions

View File

@@ -20,9 +20,14 @@ fn make_path_absolute(value: &Path) -> PathBuf {
}
fn main() {
env_logger::Builder::from_default_env()
.default_format_timestamp(false)
.init();
{
let log_env = env_logger::Env::default()
.default_filter_or("warn");
env_logger::Builder::from_env(log_env)
.default_format_timestamp(false)
.init();
}
let app = clap_app!(Rojo =>
(version: env!("CARGO_PKG_VERSION"))