diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3f8f724..7589552 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,7 +22,7 @@ jobs: - name: Upload Linux Binary uses: actions/upload-artifact@v3 with: - name: banker_algorithm_linux_x64_86 + name: rust-remote-linux-x86_64 path: target/release/rust-remote build_windows: @@ -39,7 +39,7 @@ jobs: - name: Upload Windows Binary uses: actions/upload-artifact@v3 with: - name: banker_algorithm_windows_x64_86 + name: rust-remote-windows-x86_64 path: target/release/rust-remote.exe build_macos: @@ -56,7 +56,7 @@ jobs: - name: Upload MacOS Binary uses: actions/upload-artifact@v3 with: - name: banker_algorithm_macos_x64_86 + name: rust-remote-macos-arm64 path: target/release/rust-remote release: @@ -78,9 +78,9 @@ jobs: - name: Rename Binaries run: | - mv Downloads/banker_algorithm_linux_x64_86/rust-remote Downloads/banker_algorithm_linux_x64_86/rust-remote-linux_x64_86 - mv Downloads/banker_algorithm_windows_x64_86/rust-remote.exe Downloads/banker_algorithm_windows_x64_86/rust-remote-windows_x64_86.exe - mv Downloads/banker_algorithm_macos_x64_86/rust-remote Downloads/banker_algorithm_macos_x64_86/rust-remote-macos_x64_86 + mv Downloads/rust-remote-linux-x86_64/rust-remote Downloads/rust-remote-linux-x86_64/rust-remote-linux-x86_64 + mv Downloads/rust-remote-windows-x86_64/rust-remote.exe Downloads/rust-remote-windows-x86_64/rust-remote-windows-x86_64.exe + mv Downloads/rust-remote-macos-arm64/rust-remote Downloads/rust-remote-macos-arm64/rust-remote-macos-arm64 - name: Git Commit SHA id: vars diff --git a/src/utils.rs b/src/utils.rs index 2989196..0d12ef0 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -13,8 +13,8 @@ pub fn take_args() -> Option<(RunnerMode, Config)> { "--server" | "-sv" => runner = Runner::Server, "--client" | "-cl" => runner = Runner::Client, "--debug" | "-d" => debug = true, - "--ip" | "i" => ip = args[i + 1].clone(), - "--port" | "p" => port = args[i + 1].clone(), + "--ip" | "-i" => ip = args[i + 1].clone(), + "--port" | "-p" => port = args[i + 1].clone(), "--help" | "-h" => { show_help(); std::process::exit(0); @@ -30,6 +30,8 @@ pub fn take_args() -> Option<(RunnerMode, Config)> { } }; + println!("{:#?}", ip); + let port = match port.parse::() { Ok(port) => port, Err(err_val) => {