mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
DOCS: move the env command help text into a text file.
This commit is contained in:
parent
c5d608216a
commit
7c253991e8
7
src/help/env.txt
Normal file
7
src/help/env.txt
Normal 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.
|
10
src/main.rs
10
src/main.rs
@ -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())
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user