How to share CLI args between multi-threads in Rust?

前端 未结 0 1695
难免孤独
难免孤独 2021-02-20 10:11

I\'m writing a CLI program in Rust. I\'m using clap as argument parser and I would like pass the ArgMatches to each sub-thread. I\'m wondering which way is better t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题