mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 17:09:35 +00:00
feat: update help flag
This commit is contained in:
@@ -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!();
|
||||
|
||||
Reference in New Issue
Block a user