Skip to content

Commit c4a5804

Browse files
committed
fixed typo option -R and fixed deprecated spit function arg
1 parent cb937a9 commit c4a5804

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RunLinuxVM/AppDelegate.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func getOpt() {
165165
--iso, -i: Linux installer ISO path
166166
--live, -l: Boot ISO in live mode only
167167
--path, -p: bundle path with tailing slash eg. /path/to/Debian.bundle/
168-
--raw-imgs, -i: additional disk image files seperate by comma
168+
--raw-imgs, -R: additional disk image files seperate by comma
169169
--resolution, -r: screen resolution preset [hd, fhd, 2k, 4k]
170170
--share-paths, -s: share paths to guest seperate by comma
171171
--help, -h: show this help
@@ -508,7 +508,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, VZVirtualMachineDelegate {
508508
// MARK: Start the virtual machine.
509509

510510
func configureAndStartVirtualMachine() {
511-
window.title = String(NSString(string: vmBundlePath).lastPathComponent.split(by: ".")[0])
511+
window.title = String(NSString(string: vmBundlePath).lastPathComponent.split(separator: ".")[0])
512512
DispatchQueue.main.async {
513513
self.createVirtualMachine()
514514
self.virtualMachineView.virtualMachine = self.virtualMachine

0 commit comments

Comments
 (0)