Command line options for Aha-Soft AhaView

Usage
AhaView.exe [action] source [dest=destdir] [options]

Separate command line parameters with spaces.
Use double quotes to wrap long file names
containing spaces as one parameter.

Use empty action to view a source file or browse a source folder.
Other actions:
-c   - image file conversion
-?   - show this help file.

Flags mean ON without '+' or '-' signs. 

?        - show this file 
d, dest  - destination directory
           default value = source directory
           usage: d="c:\temp\long name", d=c:\temp\ 
df,
destfile - destination file, valid for single source file
           default value = none
           usage: df="c:\temp\long name.ico", df=c:\temp\1.ico
sz, size - destination size and color resolution
           default value = as source file
           0 means default value
           usage: sz=(width)x[height]x[bits per pixel]    
           allowed values: width: 0..9999, height: 0..9999,
                           bits per pixel: 1, 4, 8, 24, 32, 8g, 24g
                      "g" means grayscale
           usage: sz=0x0x24, size=16x16, size=400x200x8g
f,
format   - image format
           default value = source format or destination file format.
           Destination file format has priority before source file format.
           allowed values: bmp, jpg, png, gif
           usage: f=jpg, f=png
bg       - background color,
           used to replace transparent areas
           default value = Silver
           allowed values: color name, RGB color value,
           usage: bg=Fuchsia, bg=red, bg=#FF0000
i        - create interlacing png image or progressive jpg image.
      Used for jpg and png output formats.
       default value = off
      usage: i+, i-, i
q   -  destination jpg image quality
      default value = 75
      allowed values: 1..100
      usage: q=25
o        - overwrite existing files
           default value = off
           usage: o-, o+, o
sp       - store proportions
           default value = on
           usage: sp-, sp+, sp
log      - write log.txt file in the program folder
           default value = on
           usage: log-, log+, log

Example:
AhaView.exe -c c:\picture\*.bmp dest=c:\temp\ f=jpg sz=0x300xg o+
 - This command will convert all bitmaps from c:\picture\ folder
  to grayscale jpegs with height of 300 pixels.
  Existing files will be overwrited.

AhaView.exe -c c:\picture\*.* dest=c:\temp\ f=png o-
AhaView.exe -c c:\picture\avia.bmp dest=c:\temp\ sz=200x200x8g o+ sp+
AhaView.exe -c "c:\picture\new picture\*.wmf" f=bmp sz=32x32 o
AhaView.exe -c "c:\picture\new picture\1.bmp" destfile=1new.jpg o

Error messages will be writed to log.txt in the program directory.
