From 67760cab96bd5655848affff17ccf9675ebf059d Mon Sep 17 00:00:00 2001 From: frosty Date: Fri, 21 Feb 2025 00:12:35 -0500 Subject: switch order of file_path and ip_address arguments --- README.md | 2 +- wiiload_lite.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4597492..b5e96e5 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,5 @@ This is a simple reimplemention of the Wiiload protocol for the Homebrew Channel ## Usage ``` -wiiload_lite ip_address file_path +wiiload_lite file_path ip_address ``` diff --git a/wiiload_lite.go b/wiiload_lite.go index e14f64a..8f14550 100644 --- a/wiiload_lite.go +++ b/wiiload_lite.go @@ -17,7 +17,7 @@ const ( FileChunkSize = 1024 * 128 ) -const usage = "usage: wiiload-lite ip_address file_path" +const usage = "usage: wiiload_lite file_path ip_address" func main() { if len(os.Args) != 3 { @@ -25,8 +25,8 @@ func main() { os.Exit(1) } - ipAddress := os.Args[1] - filePath := os.Args[2] + filePath := os.Args[1] + ipAddress := os.Args[2] file, err := os.Open(filePath) if err != nil { -- cgit v1.2.3