Skip to content

Commit

Permalink
take args in main
Browse files Browse the repository at this point in the history
  • Loading branch information
j4qfrost committed Jun 14, 2024
1 parent 1e74580 commit d50bd0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/templates/db/bin/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:wildfire/wildfire.dart';

Future main() async {
Future main(List<String> args) async {
final values = ApplicationOptions.parser.parse(args);
if (values["help"] == true) {
print(ApplicationOptions.parser.usage);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/db_and_auth/bin/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:wildfire/wildfire.dart';

Future main() async {
Future main(List<String> args) async {
final values = ApplicationOptions.parser.parse(args);
if (values["help"] == true) {
print(ApplicationOptions.parser.usage);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/default/bin/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:wildfire/wildfire.dart';

Future main() async {
Future main(List<String> args) async {
final values = ApplicationOptions.parser.parse(args);
if (values["help"] == true) {
print(ApplicationOptions.parser.usage);
Expand Down

0 comments on commit d50bd0b

Please sign in to comment.