Commit 69daa1dc authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::Project] Include options in subcommands.

parent 96039683
module Pod module Pod
class Command class Command
module Project module Project
def self.options module Options
def options
[ [
["--no-clean", "Leave SCM dirs like `.git' and `.svn' intact after downloading"], ["--no-clean", "Leave SCM dirs like `.git' and `.svn' intact after downloading"],
["--no-doc", "Skip documentation generation with appledoc"], ["--no-doc", "Skip documentation generation with appledoc"],
...@@ -9,6 +10,11 @@ module Pod ...@@ -9,6 +10,11 @@ module Pod
["--no-update", "Skip running `pod repo update` before install"], ["--no-update", "Skip running `pod repo update` before install"],
].concat(super) ].concat(super)
end end
end
def self.included(base)
base.extend Options
end
def initialize(argv) def initialize(argv)
config.clean = argv.flag?('clean', true) config.clean = argv.flag?('clean', true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment