On Fri, Dec 29, 2006 at 12:33:20AM -0800, Debian Bug Tracking System wrote:
> 
> In short, they're all missing a --version or equivalent way to ask them
> just that.
> 
> I think reporting the parent pkg HYLAFAX_VERSION would suffice.

e.g. for faxstat:

...
-    while ((c = getopt(argc, argv, "h:adgfilrsv")) != -1)
+    while ((c = getopt(argc, argv, "h:adgfilrsvV")) != -1)
  switch (c) {
  case 'a':                     // display archived jobs
      dirs.append(FAX_ARCHDIR);
@@ -94,6 +94,13 @@
  case 'v':                     // enable protocol tracing
      setVerbose(true);
      break;
+ case 'V':                     // print version
+     printf("faxstat, (HylaFAX) version: %s\n"
+     "Copyright (c) 1990-1996 Sam Leffler\n"
+     "Copyright (c) 1991-1996 Silicon Graphics, Inc.\n"
+     "HylaFAX is a trademark of Silicon Graphics\n"
+     ,HYLAFAX_VERSION);
...

$ faxstat/faxstat -V
faxstat, (HylaFAX) version: HylaFAX (tm) Version 4.3.1rc3
Copyright (c) 1990-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.
HylaFAX is a trademark of Silicon Graphics

-- paolo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to