Skip to content

Commit 4692841

Browse files
ntkmenex3
andauthored
Fix printing usage when no args provided (#1963)
Co-authored-by: Natalie Weizenbaum <[email protected]>
1 parent bd771af commit 4692841

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/sass.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import 'dart:isolate';
66

7+
import 'package:collection/collection.dart';
78
import 'package:path/path.dart' as p;
89
import 'package:stack_trace/stack_trace.dart';
910
import 'package:term_glyph/term_glyph.dart' as term_glyph;
@@ -41,7 +42,7 @@ Future<void> main(List<String> args) async {
4142
}
4243
}
4344

44-
if (args[0] == '--embedded') {
45+
if (args.firstOrNull == '--embedded') {
4546
embedded.main(args.sublist(1));
4647
return;
4748
}

0 commit comments

Comments
 (0)