Skip to content

Commit

Permalink
Fix printing usage when no args provided (#1963)
Browse files Browse the repository at this point in the history
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
  • Loading branch information
ntkme and nex3 committed May 16, 2023
1 parent bd771af commit 4692841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/sass.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import 'dart:isolate';

import 'package:collection/collection.dart';
import 'package:path/path.dart' as p;
import 'package:stack_trace/stack_trace.dart';
import 'package:term_glyph/term_glyph.dart' as term_glyph;
Expand Down Expand Up @@ -41,7 +42,7 @@ Future<void> main(List<String> args) async {
}
}

if (args[0] == '--embedded') {
if (args.firstOrNull == '--embedded') {
embedded.main(args.sublist(1));
return;
}
Expand Down

0 comments on commit 4692841

Please sign in to comment.