feat: shorten default configuration flag to --default-config
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user