This commit is contained in:
Vadim 2024-05-21 12:56:01 +02:00
parent 4d57a1182f
commit 2cc329ab1f

View file

@ -14,10 +14,10 @@ final _configs = parseScreenshotConfigs();
Future<int> main(List<String> args) async { Future<int> main(List<String> args) async {
final parser = ArgParser() final parser = ArgParser()
..addFlag('verbose', abbr: 'v', help: 'Verbose output.') ..addFlag('verbose', abbr: 'v', help: 'Verbose output')
..addOption('platform', abbr: 'p', help: 'Device platform.', mandatory: true) ..addOption('platform', abbr: 'p', help: 'Device platform', mandatory: true)
..addOption('device', abbr: 'd', help: 'device_snake_name', mandatory: true) ..addOption('device', abbr: 'd', help: 'device_snake_name', mandatory: true)
..addOption('layout', abbr: 'l', help: 'Device platform.', mandatory: true); ..addOption('layout', abbr: 'l', help: 'Device layout', mandatory: true);
final ArgResults argResults = parser.parse(args); final ArgResults argResults = parser.parse(args);
if (argResults['verbose'] as bool) { if (argResults['verbose'] as bool) {