Skip to content

Commit

Permalink
Merge pull request #26 from Cir0X/master
Browse files Browse the repository at this point in the history
Added debug and release flags for the flutter command
  • Loading branch information
leoafarias authored Nov 7, 2019
2 parents dcf3df3 + 1cae82c commit 7fe6052
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions lib/commands/flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +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.''');
'''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', 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 7fe6052

Please sign in to comment.