freebsd-ports/graphics/pho/files/patch-options
2009-08-15 22:04:50 +00:00

34 lines
937 B
Text

--- gmain.c.orig Mon Jul 25 12:18:05 2005
+++ gmain.c Mon Sep 11 16:05:05 2006
@@ -668,6 +668,7 @@
int main(int argc, char** argv)
{
+ int options = 1;
/* Initialize some defaults from environment variables,
* before reading cmdline args.
*/
@@ -877,8 +877,11 @@
while (argc > 1)
{
- if (argv[1][0] == '-')
- CheckArg(argv[1]);
+ if (argv[1][0] == '-' && options)
+ if (strcmp(argv[1], "--"))
+ CheckArg(argv[1]);
+ else
+ options = 0;
else {
AddImage(argv[1]);
}
--- pho.c.orig Mon Mar 21 07:28:03 2005
+++ pho.c Mon Sep 11 16:05:05 2006
@@ -439,6 +439,7 @@
printf("\t-d: Debug messages\n");
printf("\t-h: Help: Print this summary\n");
printf("\t-v: Verbose help: Print a summary of key bindings\n");
+ printf("\t--: Assume no more options are given\n");
exit(1);
}