Fixed getopt definition for TypeScript