aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {