Show
Ignore:
Timestamp:
06/16/05 15:50:14 (19 years ago)
Author:
jerome
Message:

License changes because of the new snail mail address of the Free
Software Foundation.
Added -h|--help and -v|--version command line options handling.
v1.50 is now out.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/bin/pkpgcounter

    r202 r211  
    44# pkpgcounter : a generic Page Description Language parser 
    55# 
    6 # (c) 2003,2004,2005 Jerome Alet <alet@librelogiciel.com> 
     6# (c) 2003, 2004, 2005 Jerome Alet <alet@librelogiciel.com> 
    77# This program is free software; you can redistribute it and/or modify 
    88# it under the terms of the GNU General Public License as published by 
     
    2323# 
    2424 
     25import sys 
     26from pdlanalyzer.version import __version__ 
    2527from pdlanalyzer import analyzer 
    2628 
    2729if __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() 
    2936