aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 132b418..acd0e38 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -214,10 +214,13 @@ fn command_mv(global_flags: Flags, args: MvArgs) -> anyhow::Result<()> {
214 214
215/// Shows information about links 215/// Shows information about links
216#[derive(Parser, Debug)] 216#[derive(Parser, Debug)]
217struct StatusArgs {} 217struct StatusArgs {
218 #[clap(default_value = ".")]
219 paths: Vec<PathBuf>,
220}
218 221
219fn command_status(global_flags: Flags, _args: StatusArgs) -> anyhow::Result<()> { 222fn command_status(global_flags: Flags, args: StatusArgs) -> anyhow::Result<()> {
220 let dotup = utils::read_dotup(&global_flags)?; 223 let dotup = utils::read_dotup(&global_flags)?;
221 dotup.status(); 224 dotup.status(args.paths.into_iter());
222 Ok(()) 225 Ok(())
223} 226}