feat: shorten default configuration flag to --default-config

This commit is contained in:
2026-10-11 17:15:37 +02:00
parent 35181634d6
commit b5eb4903db
3 changed files with 8 additions and 7 deletions
+3 -2
View File
@@ -55,7 +55,7 @@ struct PlayerCommandChecks {
guard case .help = try PlayerCommand.parse(["--new-instance", "--help"]) else {
fatalError("FAIL: help must not launch an independent player")
}
guard case .printDefaultConfig = try PlayerCommand.parse(["--print-default-config"]) else {
guard case .printDefaultConfig = try PlayerCommand.parse(["--default-config"]) else {
fatalError("FAIL: printing defaults must not launch a player")
}
@@ -65,7 +65,8 @@ struct PlayerCommandChecks {
["--new-instance", "--new-instance"], ["--new-instance", "--url"],
["--new-instance", "--"], ["--new-instance", movie.path, movie.path],
["--new-instance", "--unknown"], ["--no-config", "--no-config"],
["--print-default-config", movie.path], ["--print-default-config", "--print-default-config"],
["--default-config", movie.path], ["--default-config", "--default-config"],
["--print-default-config"],
["--no-config", "--new-instance", "--no-config"]] {
do {
_ = try PlayerCommand.parse(arguments, directory: directory)