Description: Drop unpackaged argparse-rs (examples only)
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-08-17
---
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -136,8 +136,5 @@ version = "1.4.3"
 [dependencies.tempfile]
 version = "3.9"
 
-[dev-dependencies.argparse-rs]
-version = "=0.1.0"
-
 [dev-dependencies.tempfile]
 version = "3.3.0"
--- a/examples/common.rs
+++ b/examples/common.rs
@@ -1,6 +1,5 @@
 // This file is released into Public Domain.
 #![allow(dead_code)]
-use argparse_rs::*;
 use gnuplot::*;
 use std::env;
 use std::path::Path;
@@ -53,74 +52,15 @@ impl Common
 {
 	pub fn new() -> Option<Common>
 	{
-		let arg_vec: Vec<_> = env::args().collect();
-
-		let mut args = ArgParser::new(arg_vec[0].clone());
-
-		args.add_opt(
-			"no-show",
-			Some("false"),
-			'n',
-			false,
-			"do not run the gnuplot process.",
-			ArgType::Flag,
-		);
-		args.add_opt(
-			"terminal",
-			None,
-			't',
-			false,
-			"specify what terminal to use for gnuplot.",
-			ArgType::Option,
-		);
-		args.add_opt(
-			"output-dir",
-			None,
-			'o',
-			false,
-			"output directory.",
-			ArgType::Option,
-		);
-		args.add_opt(
-			"extension",
-			Some("out"),
-			'e',
-			false,
-			"specify what extension the output file should have. Default: 'out'",
-			ArgType::Option,
-		);
-		args.add_opt(
-			"save-png",
-			Some("false"),
-			's',
-			false,
-			"render the plots to images.",
-			ArgType::Flag,
-		);
-		args.add_opt(
-			"echo",
-			Some("false"),
-			'g',
-			false,
-			"echo gnuplot commands.",
-			ArgType::Flag,
-		);
-
-		let res = args.parse(arg_vec.iter()).unwrap();
-
-		if res.get("help").unwrap_or(false)
-		{
-			args.help();
-			return None;
-		}
-
+		// argparse-rs is not in Debian; examples default to show + no extra flags.
+		let _ = env::args();
 		Some(Common {
-			output_dir: res.get("output-dir").unwrap_or("".into()),
-			no_show: res.get("no-show").unwrap(),
-			save_png: res.get("save-png").unwrap(),
-			echo: res.get("echo").unwrap_or(false),
-			term: res.get::<String>("terminal").map(|s| s.to_string()),
-			extension: res.get::<String>("extension").unwrap(),
+			output_dir: "".into(),
+			no_show: false,
+			save_png: false,
+			echo: false,
+			term: None,
+			extension: "out".into(),
 		})
 	}
 
