feat: join args to new item
This commit is contained in:
parent
a7dc703a91
commit
fcd4a4258d
@ -11,7 +11,13 @@ fn main() -> Result<()> {
|
||||
let args = env::args();
|
||||
|
||||
if args.len() > 1 {
|
||||
args.into_iter().skip(1).for_each(|a| app.add(a.into()));
|
||||
app.add(
|
||||
args.into_iter()
|
||||
.skip(1)
|
||||
.collect::<Vec<String>>()
|
||||
.join(" ")
|
||||
.into(),
|
||||
); //.for_each(|a| app.add(a.into()));
|
||||
app.save()?;
|
||||
return Ok(());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user