mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 22:09:35 +00:00
feat: update help flag
This commit is contained in:
@@ -21,7 +21,7 @@ use glob::glob;
|
||||
use std::process::Command;
|
||||
|
||||
pub fn fmt(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 fmt", BOLD_CYAN);
|
||||
println!();
|
||||
|
||||
Reference in New Issue
Block a user