mmg: handle all command line arguments (e.g. add all files)

Fixes #867.