Skip to content

Commit

Permalink
add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Sep 7, 2024
1 parent 5dd64eb commit 7650b37
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nh"
version = "3.5.25"
version = "3.5.26"
edition = "2021"
license = "EUPL-1.2"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
9 changes: 8 additions & 1 deletion src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ fn make_style() -> Styles {
long_about = None,
styles=make_style(),
propagate_version = false,
help_template = "
{name} {version}
{about-with-newline}
{usage-heading} {usage}
{all-args}{after-help}
"
)]
/// nh is yet another nix helper
/// Yet another nix helper
pub struct NHParser {
#[arg(short, long, global = true)]
/// Show debug logs
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ fn main() -> Result<()> {
let args = <NHParser as clap::Parser>::parse();
crate::logging::setup_logging(args.verbose)?;
tracing::debug!(?args);
tracing::debug!(%NH_VERSION);

args.command.run()
}
Expand Down

0 comments on commit 7650b37

Please sign in to comment.