DOCS: move the env command help text into a text file.

This commit is contained in:
Jeremy Wall 2019-05-28 20:36:12 -05:00
parent c5d608216a
commit 7c253991e8
2 changed files with 8 additions and 9 deletions

7
src/help/env.txt Normal file
View File

@ -0,0 +1,7 @@
Universal Configuration Grammar compiler
ENVIRONMENT VARIABLES:
UCG_IMPORT_PATH="{}"
A list of paths to search for imports from. Uses the same syntax
as your platforms $PATH environment variable.

View File

@ -499,16 +499,8 @@ fn importers_command(registry: &ImporterRegistry) {
}
fn env_help() {
println!("Universal Configuration Grammar compiler.");
println!("");
println!("ENVIRONMENT VARIABLES:");
println!("");
println!(
"
UCG_IMPORT_PATH=\"{}\"
A list of paths to search for imports from. Uses the same syntax
as your platforms $PATH environment variable.
",
include_str!("help/env.txt"),
std::env::var("UCG_IMPORT_PATH").unwrap_or(String::new())
);
}