equal
deleted
inserted
replaced
86 # ----------------------------------------------------------------------------- |
86 # ----------------------------------------------------------------------------- |
87 # Global variables |
87 # Global variables |
88 # ---------------- |
88 # ---------------- |
89 # |
89 # |
90 |
90 |
91 __author__ = "Pierre Rouleau" |
91 __author__ = "Pierre Rouleau" |
92 __version__ = "$Revision: 1.5 $" |
92 __version__ = "$Revision: 1.5 $" |
93 |
93 |
94 # ----------------------------------------------------------------------------- |
94 # ----------------------------------------------------------------------------- |
95 |
95 |
96 |
96 |
434 argc = len(sys.argv) |
434 argc = len(sys.argv) |
435 if argc == 1: |
435 if argc == 1: |
436 printUsage('Missing argument: specify at least one of -m or -p (or both).') |
436 printUsage('Missing argument: specify at least one of -m or -p (or both).') |
437 sys.exit(1) |
437 sys.exit(1) |
438 # If there is some arguments, parse the command line |
438 # If there is some arguments, parse the command line |
439 validOptions = "ehmpv" |
439 validOptions = "ehmpv" |
440 validLongOptions = ['domain=', 'moTarget='] |
440 validLongOptions = ['domain=', 'moTarget='] |
441 option = {} |
441 option = {} |
442 option['forceEnglish'] = 0 |
442 option['forceEnglish'] = 0 |
443 option['mo'] = 0 |
443 option['mo'] = 0 |
444 option['po'] = 0 |
444 option['po'] = 0 |