argParser property
Argument parser for the command.
Implementation
@override
final ArgParser argParser = creatorArgParser
..addMultiOption(
"platform",
abbr: 'P',
// `custom` was offered here but a builder job only ever serialises
// `android` and `ios`, so it was accepted and then dropped — silently
// when combined with a real platform. `distribute build custom` remains
// available as a direct command.
help: "The platform to build for.",
allowed: [if (Platform.isMacOS) "ios", "android"],
allowedHelp: {
if (Platform.isMacOS) "ios": "Build for iOS.",
"android": "Build for Android.",
},
);