MOD: changed to -f file

This commit is contained in:
JohnE 2016-10-12 02:13:28 -07:00
parent 498070a48e
commit 93c220e6d2
2 changed files with 3 additions and 4 deletions

View File

@ -258,7 +258,6 @@ class JpgBin:
#
def __repr__(self):
return repr(self.jpg_fp)
#

View File

@ -79,7 +79,7 @@ def parseArgs():
print(" ** Pic * Seal ** ")
print("***** ***** ***** *****\n")
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--image', required=False, help="source image file")
parser.add_argument('-f', '--file', required=False, help="source image file")
parser.add_argument('-v', '--verbose', action='store_true', help="will set logging level to INFO")
parser.add_argument('-vv', '--vverbose', action='store_true', help="will set logging level to DEBUG")
parser.add_argument('-l', '--logging', action='store_true', help="will supercede the -v option and send all logging to a file, logging.DEBUG")
@ -110,8 +110,8 @@ def parseArgs():
global printimage
printimage = True
if (args.image):
processImage(args.image)
if (args.file):
processImage(args.file)
else:
print('Create PicSeal images')
print(' picseal.py -i <image_file>')