feat: update help flag

This commit is contained in:
2026-06-06 21:22:46 +08:00
parent 6424aab69d
commit c8cb155e5a
10 changed files with 28 additions and 16 deletions

View File

@@ -23,7 +23,7 @@ use std::path::{Path, PathBuf};
use toml::Value;
pub fn tree(args: &[String]) -> i32 {
if args.first().map_or(false, |a| a == "--help") {
if args.first().is_some_and(|a| a == "--help") {
printc("USAGE:", BOLD_GREEN);
printc(" dcr tree", BOLD_CYAN);
println!();