Changeset 211 for pkpgcounter/trunk/bin/pkpgcounter
- Timestamp:
- 06/16/05 15:50:14 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/bin/pkpgcounter
r202 r211 4 4 # pkpgcounter : a generic Page Description Language parser 5 5 # 6 # (c) 2003, 2004,2005 Jerome Alet <alet@librelogiciel.com>6 # (c) 2003, 2004, 2005 Jerome Alet <alet@librelogiciel.com> 7 7 # This program is free software; you can redistribute it and/or modify 8 8 # it under the terms of the GNU General Public License as published by … … 23 23 # 24 24 25 import sys 26 from pdlanalyzer.version import __version__ 25 27 from pdlanalyzer import analyzer 26 28 27 29 if __name__ == "__main__" : 28 analyzer.main() 30 if (len(sys.argv) >= 2) and (sys.argv[1] in ("-h", "--help")) : 31 print "usage : pkpgcounter file1 [ file2 ... fileN [ <anotherfile ] ]" 32 elif (len(sys.argv) >= 2) and (sys.argv[1] in ("-v", "--version") : 33 print __version__ 34 else : 35 analyzer.main() 29 36