mirror of
https://github.com/gnxlxnxx/cargo-dfu.git
synced 2026-07-27 15:23:02 +02:00
remove dfu subcommand from being parsed by clap
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ fn main() {
|
|||||||
|
|
||||||
// Get commandline options.
|
// Get commandline options.
|
||||||
// Skip the first arg which is the calling application name.
|
// Skip the first arg which is the calling application name.
|
||||||
let opt = Opt::parse_from(std::env::args());
|
let opt = Opt::parse_from(std::env::args().skip(1));
|
||||||
|
|
||||||
if opt.list_chips {
|
if opt.list_chips {
|
||||||
for vendor in vendor_map() {
|
for vendor in vendor_map() {
|
||||||
|
|||||||
Reference in New Issue
Block a user