INNER CODE UNIT · Rust
version
rustic-rs/rustic · src/commands.rs:172
fn version() -> &'static str {
option_env!("PROJECT_VERSION").unwrap_or(env!("CARGO_PKG_VERSION"))
}
pub(crate) fn program_version() -> String {
format!("rustic {}", version())
}
/// Entry point for the application. It needs to be a struct to allow using subcommands!
#[derive(clap::Parser, Command, Debug)]
#[command(author, about, name="rustic", styles=styles(), version=version())]
pub struct EntryPoint {
#[command(flatten)]
pub config: RusticConfig,
#[command(subcommand)]
commands: RusticCmd,
}