From 5009048d44ccfe77ba6ec150cb6136f63b4ad14e Mon Sep 17 00:00:00 2001 From: Majd Alfhaily Date: Tue, 8 Jun 2021 09:39:41 +0200 Subject: [PATCH] Align version (1.0.4) --- README.md | 13 ++++++++----- Source/Commands/Download.swift | 6 +++--- Source/Commands/IPATool.swift | 2 +- Source/Commands/Search.swift | 12 ++++++------ ipatool.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/xcschemes/ipatool.xcscheme | 4 ++-- 6 files changed, 21 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index d0666c5b..ee3bd87f 100644 --- a/README.md +++ b/README.md @@ -34,14 +34,16 @@ To search for apps on the App Store, use the `search` command. ``` OVERVIEW: Search for iOS apps available on the App Store. -USAGE: ipatool search [--limit ] [--country ] [--log-level ] +USAGE: ipatool search [--limit ] [--country ] [--log-level ] ARGUMENTS: The term to search for. OPTIONS: - --limit (default: 5) - --country The country to search in. (default: US) + -l, --limit The maximum amount of search results to retrieve. + (default: 5) + -c, --country The two-letter (ISO 3166-1 alpha-2) country code for + the iTunes Store. (default: US) --log-level (default: info) --version Show the version. -h, --help Show help information. @@ -52,15 +54,16 @@ To download a copy of the ipa file, use the `download` command. ``` OVERVIEW: Download (encrypted) iOS app packages from the App Store. -USAGE: ipatool download --bundle-identifier [--email ] [--password ] [--log-level ] +USAGE: ipatool download --bundle-identifier [--email ] [--password ] [--country ] [--log-level ] OPTIONS: -b, --bundle-identifier The bundle identifier of the target iOS app. - -c, --country The country of the target iOS app. (default: US) -e, --email The email address for the Apple ID. -p, --password The password for the Apple ID. + -c, --country The two-letter (ISO 3166-1 alpha-2) country code for + the iTunes Store. (default: US) --log-level (default: info) --version Show the version. -h, --help Show help information. diff --git a/Source/Commands/Download.swift b/Source/Commands/Download.swift index 5f48d6b7..3b5e1646 100644 --- a/Source/Commands/Download.swift +++ b/Source/Commands/Download.swift @@ -16,15 +16,15 @@ struct Download: ParsableCommand { @Option(name: [.short, .long], help: "The bundle identifier of the target iOS app.") private var bundleIdentifier: String - @Option(name: [.short, .long], help: "The country of the target iOS app.") - private var country: String = "US" - @Option(name: [.short, .customLong("email")], help: "The email address for the Apple ID.") private var emailArgument: String? @Option(name: [.short, .customLong("password")], help: "The password for the Apple ID.") private var passwordArgument: String? + @Option(name: [.short, .long], help: "The two-letter (ISO 3166-1 alpha-2) country code for the iTunes Store.") + private var country: String = "US" + @Option private var logLevel: LogLevel = .info diff --git a/Source/Commands/IPATool.swift b/Source/Commands/IPATool.swift index c031e563..3ab67ddf 100644 --- a/Source/Commands/IPATool.swift +++ b/Source/Commands/IPATool.swift @@ -11,7 +11,7 @@ struct IPATool: ParsableCommand { static var configuration: CommandConfiguration { return .init(commandName: "ipatool", abstract: "A cli tool for interacting with Apple's ipa files.", - version: "1.0.3", + version: "1.0.4", subcommands: [Download.self, Search.self]) } } diff --git a/Source/Commands/Search.swift b/Source/Commands/Search.swift index d691f334..41b0334f 100644 --- a/Source/Commands/Search.swift +++ b/Source/Commands/Search.swift @@ -13,14 +13,14 @@ struct Search: ParsableCommand { return .init(abstract: "Search for iOS apps available on the App Store.") } - @Option - private var limit: Int = 5 + @Argument(help: "The term to search for.") + private var term: String - @Option(help: "The two-letter (ISO 3166-1 alpha-2) country code for the store you want to search.") - var country: String = "US" + @Option(name: [.short, .long], help: "The maximum amount of search results to retrieve.") + private var limit: Int = 5 - @Argument(help: "The term to search for.") - var term: String + @Option(name: [.short, .long], help: "The two-letter (ISO 3166-1 alpha-2) country code for the iTunes Store.") + private var country: String = "US" @Option private var logLevel: LogLevel = .info diff --git a/ipatool.xcodeproj/project.pbxproj b/ipatool.xcodeproj/project.pbxproj index 0fda95ba..0641a886 100644 --- a/ipatool.xcodeproj/project.pbxproj +++ b/ipatool.xcodeproj/project.pbxproj @@ -122,8 +122,8 @@ isa = PBXGroup; children = ( A9CA48CC2658FBF700BC09D5 /* Download.swift */, - A9CA49022659627A00BC09D5 /* Search.swift */, A9CA48CE2658FC7400BC09D5 /* IPATool.swift */, + A9CA49022659627A00BC09D5 /* Search.swift */, ); path = Commands; sourceTree = ""; diff --git a/ipatool.xcodeproj/xcshareddata/xcschemes/ipatool.xcscheme b/ipatool.xcodeproj/xcshareddata/xcschemes/ipatool.xcscheme index 4f37f0dc..86f426de 100644 --- a/ipatool.xcodeproj/xcshareddata/xcschemes/ipatool.xcscheme +++ b/ipatool.xcodeproj/xcshareddata/xcschemes/ipatool.xcscheme @@ -53,7 +53,7 @@ + isEnabled = "YES"> + isEnabled = "NO">