[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-forms/utils gfd04to05.py
From: |
Jan Ischebeck |
Subject: |
gnue-forms/utils gfd04to05.py |
Date: |
Tue, 05 Aug 2003 18:52:45 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-forms
Branch:
Changes by: Jan Ischebeck <address@hidden> 03/08/05 18:52:44
Modified files:
utils : gfd04to05.py
Log message:
add usage notes to gfd file converter tool
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-forms/utils/gfd04to05.py.diff?tr1=1.25&tr2=1.26&r1=text&r2=text
Patches:
Index: gnue-forms/utils/gfd04to05.py
diff -c gnue-forms/utils/gfd04to05.py:1.25 gnue-forms/utils/gfd04to05.py:1.26
*** gnue-forms/utils/gfd04to05.py:1.25 Tue Apr 1 23:38:26 2003
--- gnue-forms/utils/gfd04to05.py Tue Aug 5 18:52:44 2003
***************
*** 32,37 ****
--- 32,53 ----
from xml.sax import make_parser, handler
from xml.sax import saxutils
+ def showUsage():
+ print """
+ gfd04to05.py - a tool for converting old style gnue-forms files (version 0.4x
and smaller)
+ Usage: gfd04to05.py <input file> [<output file>]
+
+ """
+ sys.exit(1)
+
+ if (len(sys.argv) not in [2,3]):
+ print 'Error: Wrong number of arguments provided!'
+ showUsage()
+
+ if sys.argv[1]=='--help':
+ showUsage()
+
+
class Forms04Loader(handler.ContentHandler):
stack = [None]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-forms/utils gfd04to05.py,
Jan Ischebeck <=