From 26cb6b9f92f38abd94fbaa0b153981ad6fae9267 Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 26 Dec 2024 15:30:23 -0500 Subject: [PATCH] Tweak CLI --- dust-cli/src/main.rs | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/dust-cli/src/main.rs b/dust-cli/src/main.rs index fe6d977..13d3bf4 100644 --- a/dust-cli/src/main.rs +++ b/dust-cli/src/main.rs @@ -1,4 +1,3 @@ -use std::fmt::Write; use std::io::{self, stdout, Read}; use std::time::{Duration, Instant}; use std::{fs::read_to_string, path::PathBuf}; @@ -13,21 +12,19 @@ use clap::{Args, Error}; use color_print::cstr; use dust_lang::{CompileError, Compiler, DustError, DustString, Lexer, Span, Token, Vm}; use tracing::subscriber::set_global_default; -use tracing::{span, warn, Level}; -use tracing_subscriber::fmt::format::Writer; -use tracing_subscriber::fmt::{FmtContext, MakeWriter}; +use tracing::Level; use tracing_subscriber::FmtSubscriber; const CLI_HELP_TEMPLATE: &str = cstr!( r#" Dust CLI -──────── -{about} +──────── +{about} -{tab}☑ Version: {version} -{tab}✎ Author: {author} -{tab}⚖️ License: GPL-3.0 -{tab}🌐 Repository: git.jeffa.io/jeff/dust +Version: {version} +Author: {author} +License: GPL-3.0 +Repository: git.jeffa.io/jeff/dust Usage ───── @@ -45,18 +42,18 @@ const CLI_HELP_TEMPLATE: &str = cstr!( const MODE_HELP_TEMPLATE: &str = cstr!( r#" -Dust CLI -──────── -{about} +Dust CLI +──────── +{about} -{tab}☑ Version: {version} -{tab}✎ Author: {author} -{tab}⚖️ License: GPL-3.0 -{tab}🌐 Repository: git.jeffa.io/jeff/dust +Version: {version} +Author: {author} +License: GPL-3.0 +Repository: git.jeffa.io/jeff/dust Usage ───── -{tab}{usage} +{usage} Options ───────