Skip to content

Commit

Permalink
Added --build-number and --[no-]codesign arguments
Browse files Browse the repository at this point in the history
disabled [no-] prefix for non negetable parameters
  • Loading branch information
Cir0X committed Oct 24, 2019
1 parent 5a58bbe commit 1cae82c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions lib/commands/flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1cae82c

Please sign in to comment.