Skip to content

Commit

Permalink
Add help command
Browse files Browse the repository at this point in the history
  • Loading branch information
thii committed Aug 11, 2018
1 parent 4fbe8af commit 4639c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Unxip/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import UnxipKit

let args = CommandLine.arguments

if args.count == 1 {
if args.count == 1 || args.contains("-h") || args.contains("--help") {
print("Usage: unxip <input-xip-file> [<output-directory>]", terminator: "\n\n")
print(" Extract a signed archive.")
exit(0)
Expand Down Expand Up @@ -37,6 +37,6 @@ do {

runner.wait()
} catch {
print(error)
print(error.localizedDescription)
exit(1)
}

0 comments on commit 4639c60

Please sign in to comment.