INNER CODE UNIT · Rust
version_line
ngless-toolkit/ngless · src/lib.rs:59
pub fn version_line() -> String {
format!("ngless v{VERSION_STR_LONG} (release date: {DATE_STR})")
}
/// `--version-debug` output.
pub fn version_debug_line() -> String {
format!(
"ngless v{VERSION_STR} (full version: {VERSION_STR_LONG}; release date: {DATE_STR})"
)
}
}
/// Usage/help text, listing the flags this build actually supports (see `cli::parse_args`).
/// Used by `--help`/`-h` (printed to stdout) and as the usage message when no script is given
/// (printed to stderr by `cli::exec_default`).
pub(crate) fn help_text() -> String {
format!(
"{header}\n\