Downloading logs using mavlogdump.py or other means

I’m trying to write a simple script to automatically download the logs from a pixhawk over serial and I’ve found a sample command line for using mavlogdump.py but I can not get it to work.

C:\Development\LogLoader>mavlogdump.py --download *.BIN serial:com6:115200
usage: mavlogdump.py [-h] [--no-timestamps] [--planner] [--robust] [-f] [--condition CONDITION] [-q] [-o OUTPUT] [-p]
                     [--format FORMAT] [--csv_sep CSV_SEP] [--types TYPES] [--nottypes NOTTYPES] [--mat_file MAT_FILE]
                     [-c] [--dialect DIALECT] [--zero-time-base] [--no-bad-data] [--show-source] [--show-seq]
                     [--show-types] [--source-system SOURCE_SYSTEM] [--source-component SOURCE_COMPONENT]
                     [--link LINK] [--verbose] [--mav10] [--reduce REDUCE] [--reduce-rate REDUCE_RATE] [--profile]
                     [--meta]
                     LOG
mavlogdump.py: error: unrecognized arguments: --download serial:com6:115200

Any ideas how to get this to work?