Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37913241
en ru br
ALT Linux repos
S:7422-alt1.qa1

Group :: Sciences/Mathematics
RPM: filigram

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: filigram.help.patch
Download


--- filigram.c.orgi	2010-08-23 11:54:36.270601184 +0000
+++ filigram.c	2010-08-23 12:02:32.379602327 +0000
@@ -913,12 +913,12 @@
 	struct Size imagesize, basesize;
 	double xcentre, ycentre, xrange, yrange, iscale, oscale;
 	int gotxcentre, gotycentre, gotxrange, gotyrange, gotiscale, gotoscale;
-	int fade, isbase, verbose;
+	int fade, isbase, verbose, help;
 	struct Poly *poly;
 	struct Colours *colours;
     } optdata = {
 	NULL, FALSE, {0,0}, {0,0},
-	0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0,
 	FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,
 	FALSE, FALSE, FALSE, NULL, NULL
     };
@@ -954,6 +954,8 @@
 		"colour specification", parsecols, offsetof(struct options, colours), -1},
 	{1, "--verbose", 'v', NULL, "report details of what is done",
 		NULL, NULL, -1, offsetof(struct options, verbose)},
+	{1, "--help", 'h', NULL, "display options usage",
+		NULL, NULL, -1, offsetof(struct options, help)},
     };
 
     char *usageextra[] = {
@@ -968,7 +970,7 @@
 
     parse_cmdline("filigram", argc, argv, options, lenof(options), &optdata);
 
-    if (argc < 2)
+    if (argc < 2 || optdata.help)
 	usage_message("filigram [options]",
 		      options, lenof(options),
 		      usageextra, lenof(usageextra));
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin