Added tests for short names.
Defined --flagfile (not implemented yet).