File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ void main(List<String> args) async {
1414 final project = parsedArguments.command! ['project' ] ??
1515 Platform .environment['FLUTTERFLOW_PROJECT' ];
1616
17+ if (project == null || project.isEmpty) {
18+ stderr.write (
19+ 'Either --project option or FLUTTERFLOW_PROJECT environment variable must be set.\n ' );
20+ exit (1 );
21+ }
22+
1723 if (parsedArguments['endpoint' ] != null &&
1824 parsedArguments['environment' ] != null ) {
1925 stderr.write (
@@ -113,11 +119,5 @@ ArgResults _parseArgs(List<String> args) {
113119 exit (1 );
114120 }
115121
116- if (parsed.command! ['project' ] == null ||
117- parsed.command! ['project' ].isEmpty) {
118- stderr.write (
119- 'Either --project option or FLUTTERFLOW_PROJECT environment variable must be set.\n ' );
120- exit (1 );
121- }
122122 return parsed;
123123}
You can’t perform that action at this time.
0 commit comments