MOD: changed to -f file
This commit is contained in:
		
							parent
							
								
									498070a48e
								
							
						
					
					
						commit
						93c220e6d2
					
				| 
						 | 
				
			
			@ -258,7 +258,6 @@ class JpgBin:
 | 
			
		|||
 | 
			
		||||
  #
 | 
			
		||||
  def __repr__(self):
 | 
			
		||||
    
 | 
			
		||||
    return repr(self.jpg_fp)
 | 
			
		||||
 | 
			
		||||
  #
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue