We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2844290 commit 39e8c51Copy full SHA for 39e8c51
src/main.rs
@@ -33,6 +33,7 @@ fn setup() -> Result<Options, session::Error> {
33
34
let options: Options = Options::parse();
35
36
+ // generate shell completions and exit
37
if let Some(shell) = options.generate_completions {
38
clap_complete::generate(shell, &mut Options::command(), "legba", &mut io::stdout());
39
std::process::exit(0);
@@ -44,6 +45,12 @@ fn setup() -> Result<Options, session::Error> {
44
45
46
}
47
48
+ print!(
49
+ "{} v{}\n\n",
50
+ env!("CARGO_PKG_NAME"),
51
+ env!("CARGO_PKG_VERSION")
52
+ );
53
+
54
// set file descriptors limits
55
#[cfg(not(windows))]
56
setrlimit(Resource::NOFILE, options.ulimit, options.ulimit).map_err(|e| {
0 commit comments