feat: update info

This commit is contained in:
2023-02-13 00:06:41 +08:00
parent 72550ebe2c
commit 3eb2c1f46d
2 changed files with 14 additions and 5 deletions

View File

@@ -37,7 +37,11 @@ enum Commands {
/// Show file info
#[command(arg_required_else_help = true, short_flag = 'I')]
Info {
/// File
path: PathBuf,
/// Show raw meta
#[arg(long, default_value_t = false)]
raw_meta: bool,
},
}
@@ -54,8 +58,8 @@ fn main() -> XResult<()> {
}
Ok(())
}
Commands::Info { path } => {
cmd_info::info(path)
Commands::Info { path, raw_meta } => {
cmd_info::info(path, raw_meta)
}
}
}