Revision: 55840
http://sourceforge.net/p/brlcad/code/55840
Author: carlmoore
Date: 2013-06-25 17:41:13 +0000 (Tue, 25 Jun 2013)
Log Message:
-----------
implement h,?, run-with-no-args for help; old h is replaced by H
Modified Paths:
--------------
brlcad/trunk/src/fb/fbfade.c
Modified: brlcad/trunk/src/fb/fbfade.c
===================================================================
--- brlcad/trunk/src/fb/fbfade.c 2013-06-25 10:01:42 UTC (rev 55839)
+++ brlcad/trunk/src/fb/fbfade.c 2013-06-25 17:41:13 UTC (rev 55840)
@@ -66,8 +66,8 @@
#define USAGE1 "Usage: fbfade [ -s size ] [ -w width ] [ -n height ] [ -f
in_fb_file ]\n\
-[ -h ] [ -S size ] [ -W width ] [ -N height ] [ [ -F ] out_fb_file ]"
-#define OPTSTR "f:F:hn:N:s:S:w:W:"
+[ -H ] [ -S size ] [ -W width ] [ -N height ] [ [ -F ] out_fb_file ]"
+#define OPTSTR "f:F:Hn:N:s:S:w:W:h?"
typedef int bool_t;
@@ -148,7 +148,7 @@
out_fb_file = bu_optarg;
break;
- case 'h': /* -h */
+ case 'H': /* -h */
hires = 1;
break;
@@ -189,6 +189,8 @@
break;
}
+ if (argc == 1 && isatty(fileno(stdin)) && isatty(fileno(stdout)))
+ errors = 1;
if (errors)
Fatal(fbp, USAGE1);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits