Skip to content

Commit bc7a3dc

Browse files
committed
Add version info to vhdl_ls
1 parent 9801c92 commit bc7a3dc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

vhdl_ls/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ lsp-types = "^0.63"
2222
fnv = "^1"
2323
log = "0.4.6"
2424
env_logger = "0.6.0"
25+
clap = "^2"
2526

2627
[dev-dependencies]
2728
tempfile = "^3"

vhdl_ls/src/main.rs

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ extern crate log;
1111
use env_logger;
1212

1313
fn main() {
14+
use clap::App;
15+
16+
let _matches = App::new(env!("CARGO_PKG_NAME"))
17+
.version(env!("CARGO_PKG_VERSION"))
18+
.author(env!("CARGO_PKG_AUTHORS"))
19+
.about(env!("CARGO_PKG_DESCRIPTION"))
20+
.get_matches();
21+
1422
env_logger::init();
1523
info!("Starting language server");
1624
vhdl_ls::start();

0 commit comments

Comments
 (0)