aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-02-21 00:12:35 -0500
committerfrosty <passedgoandgot200@disroot.org>2025-02-21 00:12:35 -0500
commit67760cab96bd5655848affff17ccf9675ebf059d (patch)
treeb0d95ff1b74db670625ffecac33d992f0ac713c4
parent15e576cd2f3e92053e2c219e14376a5f5435a219 (diff)
downloadwiiload-lite-67760cab96bd5655848affff17ccf9675ebf059d.tar.gz
wiiload-lite-67760cab96bd5655848affff17ccf9675ebf059d.zip
switch order of file_path and ip_address arguments
-rw-r--r--README.md2
-rw-r--r--wiiload_lite.go6
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 {