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 1ceac17 commit b1214a5Copy full SHA for b1214a5
crates/lsp/src/main.rs
@@ -11,9 +11,15 @@ fn main() {
11
.args(&[
12
arg!(--stdio "specifies to use stdio to communicate with lsp"),
13
arg!(--log "write log to file"),
14
+ arg!(version: -v --version),
15
])
16
.get_matches();
17
18
+ if matches.args_present() && matches.get_flag("version") {
19
+ print!("{}", std::env!("CARGO_PKG_VERSION"));
20
+ return;
21
+ }
22
+
23
setup_logging(matches.get_flag("log"));
24
25
beancount_language_server::run_server()
0 commit comments