lib/pod/command/keys/generate.rb in cocoapods-keys-2.0.0 vs lib/pod/command/keys/generate.rb in cocoapods-keys-2.0.1
- old
+ new
@@ -8,10 +8,19 @@
class Generate < Keys
self.summary = 'Generates the obfuscated class.'
self.description = <<-DESC
Generates the obfuscated Objective-C h/m files using the current key values.
+
+ An optional operator can be done to force a project name.
DESC
+
+ self.arguments = [CLAide::Argument.new('project_name', false)]
+
+ def initialize(argv)
+ @project_name = argv.shift_argument
+ super
+ end
def run
Dotenv.load
keyring = get_current_keyring