mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2025-12-23 22:29:01 -05:00
Revert "fixed rust 1.74 new clippy lints"
This reverts commit 873a23398f.
This commit is contained in:
Binary file not shown.
@@ -3,8 +3,8 @@
|
||||
/// Parse CLI arguments, and exit if `--help`, `--version`, or an
|
||||
/// unknown argument was supplied
|
||||
pub fn parse_cli_args() {
|
||||
let mut args = std::env::args().skip(1);
|
||||
if let Some(arg) = args.next() {
|
||||
let args = std::env::args().skip(1);
|
||||
for arg in args {
|
||||
match arg.as_str() {
|
||||
"--help" | "-h" => print_help(),
|
||||
"--version" | "-v" => print_version(),
|
||||
|
||||
Reference in New Issue
Block a user