funkblubber/bin/main.dart

16 lines
440 B
Dart
Raw Normal View History

2023-01-26 22:35:58 +01:00
import 'dart:core';
import 'package:funkblubber/funkblubber.dart' as funkblubber;
import 'package:funkblubber/console.dart' as console;
2023-01-31 07:40:30 +01:00
import 'package:funkblubber/parsing/parser.dart' as parser;
2023-01-26 22:35:58 +01:00
void main(final List<String> arguments) async {
2023-01-31 07:40:30 +01:00
final result = parser.extract(arguments);
if (!result.success) {
2023-01-26 22:35:58 +01:00
console.error("'funkblubber --help 'for more");
return;
}
2023-01-31 07:40:30 +01:00
await funkblubber.download(object: result.object!);
2023-01-26 22:35:58 +01:00
}