aboutsummaryrefslogtreecommitdiff
path: root/src/cliargs.rs
diff options
context:
space:
mode:
authorlukeflo2024-10-25 12:48:19 +0200
committerlukeflo2024-10-25 12:48:19 +0200
commit23ee04fffe4bdf4b8c34603e4b191d7cc308051b (patch)
tree70e4b146e388067dec7e4d5d1c5b8cd3628b5e4a /src/cliargs.rs
parentbc4513d700b724b8edb72b6a1a429df60967a12c (diff)
downloadbibiman-23ee04fffe4bdf4b8c34603e4b191d7cc308051b.tar.gz
bibiman-23ee04fffe4bdf4b8c34603e4b191d7cc308051b.zip
Inegrate new command-action driven structure
- Map keys to actions to commands - allows for easily adding config file support - restructure folders/files - implement own input mode - rewrite UI rendering to make it better editable
Diffstat (limited to 'src/cliargs.rs')
-rw-r--r--src/cliargs.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cliargs.rs b/src/cliargs.rs
index d3a4652..9de2e7f 100644
--- a/src/cliargs.rs
+++ b/src/cliargs.rs
@@ -15,9 +15,9 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
/////
-use std::path::PathBuf;
-
use sarge::prelude::*;
+use std::env;
+use std::path::PathBuf;
sarge! {
// Name of the struct
@@ -79,11 +79,14 @@ pub fn version_func() -> String {
"\
{} {}
{}
-{}",
+{}
+
+Target Triple: {}",
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_VERSION"),
env!("CARGO_PKG_AUTHORS"),
- env!("CARGO_PKG_LICENSE")
+ env!("CARGO_PKG_LICENSE"),
+ env!("TARGET")
);
version
}