Skip to content

Commit 13c3f63

Browse files
committed
CLI:
- Fixed `css -kill` command
1 parent 296f30a commit 13c3f63

File tree

2 files changed

+166
-164
lines changed

2 files changed

+166
-164
lines changed

src/cscs/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static int Main(string[] args)
3838
Runtime.GlobalIncludsDir?.EnsureDir(rethrow: false);
3939
Runtime.CustomCommandsDir.EnsureDir(rethrow: false);
4040

41-
var serverCommand = args.LastOrDefault(x => x.StartsWith("-server"));
41+
var serverCommand = args.LastOrDefault(x => x.StartsWith("-server")) ?? args.LastOrDefault(x => x.StartsWith("-kill"));
4242
var installCommand = args.LastOrDefault(x => x.StartsWith("-install") || x.StartsWith("-uninstall"));
4343

4444
if (serverCommand.HasText() && !args.Any(x => x == "?"))

0 commit comments

Comments
 (0)