diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-22 00:21:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-22 00:21:03 +0100 |
| commit | a5c26eaad44c45da852027d707bf1d8e838ed901 (patch) | |
| tree | 274ae2e59e70d399c68c40eb939b3f82426b899e /mumd/src/main.rs | |
| parent | 97bfcac402c06fd051f5a8c3c05384d5a2972d50 (diff) | |
| parent | a8e24b8f92e23bb8c64d8056ac1a5d882cb94de2 (diff) | |
| download | mum-a5c26eaad44c45da852027d707bf1d8e838ed901.tar.gz | |
Merge pull request #63 from mum-rs/git-hash-version
Diffstat (limited to 'mumd/src/main.rs')
| -rw-r--r-- | mumd/src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mumd/src/main.rs b/mumd/src/main.rs index 0526930..7c3745c 100644 --- a/mumd/src/main.rs +++ b/mumd/src/main.rs @@ -15,6 +15,11 @@ use tokio::task::spawn_blocking; #[tokio::main] async fn main() { + if std::env::args().find(|s| s.as_str() == "--version").is_some() { + println!("mumd {}", env!("VERSION")); + return; + } + setup_logger(std::io::stderr(), true); notify::init(); |
