int? getInt(CmdArg arg) { final val = this[arg.name] as String?; return val == null ? null : int.tryParse(val); }