diff --git a/lib/commands/flutter.dart b/lib/commands/flutter.dart index f1107a1a..44d23a92 100644 --- a/lib/commands/flutter.dart +++ b/lib/commands/flutter.dart @@ -17,16 +17,25 @@ class FlutterCommand extends Command { argParser ..addOption('device-id', abbr: 'd', help: '''Target device id or name (prefixes allowed).''') - ..addFlag('version', + ..addOption('build-number', + help: '''An identifier used as an internal version number. + Each build must have a unique identifier to differentiate it from previous builds. + It is used to determine whether one build is more recent than another, with higher numbers indicating more recent build. + On Android it is used as 'versionCode'. + On Xcode builds it is used as 'CFBundleVersion' ''') + ..addFlag('version', negatable: false, help: '''Reports the version of this tool, on the local version.''') ..addFlag('suppress-analytics', help: '''Suppress analytics reporting when this command runs.''') - ..addFlag('bug-report', + ..addFlag('bug-report', negatable: false, help: '''Captures a bug report file to submit to the Flutter team. Contains local paths, device identifiers, and log snippets.''') ..addFlag('debug', help: '''Build a debug version of your app.''') - ..addFlag('release', - help: '''Build a release version of your app (default mode).'''); + ..addFlag('release', negatable: false, + help: '''Build a release version of your app (default mode).''') + ..addFlag('codesign', + help: + '''Codesign the application bundle (only available on device builds). (defaults to on)'''); } Future<void> run() async {