From 08999e646a2fc73c4cfb172bea4164039f19626d Mon Sep 17 00:00:00 2001 From: Mark <> Date: Fri, 11 Oct 2024 22:54:56 +0200 Subject: [PATCH] add about and version to -h and --help --- mers/Cargo.toml | 4 ++-- mers/src/main.rs | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mers/Cargo.toml b/mers/Cargo.toml index 327f5db..6fd1ed4 100644 --- a/mers/Cargo.toml +++ b/mers/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mers" -version = "0.9.6" +version = "0.9.7" edition = "2021" license = "MIT OR Apache-2.0" description = "dynamically typed but type-checked programming language" @@ -15,7 +15,7 @@ default = ["colored-output"] colored-output = ["mers_lib/ecolor-term", "mers_lib/pretty-print", "dep:colored"] [dependencies] -mers_lib = "0.9.6" +mers_lib = "0.9.7" # mers_lib = { path = "../mers_lib" } clap = { version = "4.3.19", features = ["derive"] } colored = { version = "2.1.0", optional = true } diff --git a/mers/src/main.rs b/mers/src/main.rs index e617b32..f20fbf4 100755 --- a/mers/src/main.rs +++ b/mers/src/main.rs @@ -5,6 +5,11 @@ use std::{path::PathBuf, process::exit, sync::Arc}; mod cfg_globals; #[derive(Parser)] +#[command(version, + about = Some("mers - a type-checked, dynamically typed programming language focusing on safety and simplicity.\n run with --help for more info :)"), + long_about = Some("mers - a type-checked, dynamically typed programming language focusing on safety and simplicity. +Safety in mers means that a valid, type-checked mers program will not crash at runtime, and that mers tries to make writing \"bad\" code difficult. +Simplicity means that mers is easy to learn, it has little syntax and few edge-cases, but it does not mean that it is easy to write."))] struct Args { #[command(subcommand)] command: Command,