equal
deleted
inserted
replaced
437 |
437 |
438 # S c r i p t e x e c u t i o n -- Runs when invoked from the command line -- |
438 # S c r i p t e x e c u t i o n -- Runs when invoked from the command line -- |
439 # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
439 # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
440 # |
440 # |
441 if __name__ == "__main__": |
441 if __name__ == "__main__": |
442 import getopt # command line parsing |
442 # command line parsing |
|
443 import getopt # pylint: disable=wrong-import-order,wrong-import-position |
443 argc = len(sys.argv) |
444 argc = len(sys.argv) |
444 if argc == 1: |
445 if argc == 1: |
445 printUsage('Missing argument: specify at least one of -m or -p (or both).') |
446 printUsage('Missing argument: specify at least one of -m or -p (or both).') |
446 sys.exit(1) |
447 sys.exit(1) |
447 # If there is some arguments, parse the command line |
448 # If there is some arguments, parse the command line |