summaryrefslogtreecommitdiffhomepage
path: root/minirake
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-03-30 09:23:14 +0900
committertake_cheeze <[email protected]>2014-03-30 09:23:14 +0900
commitd54c250839820e1a0d4a447425163ec7ecac2962 (patch)
tree4304714b603835a191a7135ae31e1f811be8612a /minirake
parent8cdac8221dafbf23fca898afb4249e5fc0a163c6 (diff)
downloadmruby-d54c250839820e1a0d4a447425163ec7ecac2962.tar.gz
mruby-d54c250839820e1a0d4a447425163ec7ecac2962.zip
Add -C (--directory) option to minirake.
Diffstat (limited to 'minirake')
-rwxr-xr-xminirake4
1 files changed, 4 insertions, 0 deletions
diff --git a/minirake b/minirake
index e48ca1306..824e9b598 100755
--- a/minirake
+++ b/minirake
@@ -325,6 +325,8 @@ class RakeApp
"Display usage."],
['--verbose', '-v', GetoptLong::NO_ARGUMENT,
"Log message to standard output (default)."],
+ ['--directory', '-C', GetoptLong::REQUIRED_ARGUMENT,
+ "Change executing directory of rakefiles."]
]
# Create a RakeApp object.
@@ -415,6 +417,8 @@ class RakeApp
when '--version'
puts "rake, version #{RAKEVERSION}"
exit
+ when '--directory'
+ Dir.chdir value
else
fail "Unknown option: #{opt}"
end