add usage info if called w/o arguments

This commit is contained in:
John Bintz 2009-03-31 21:12:01 -04:00
parent 6c0e0261f9
commit 1a89bd05e3
2 changed files with 7 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*~

View File

@ -411,6 +411,11 @@ end
any_rebuilt = false
any_rsync = false
if !ARGV[0]
puts "Usage: #{File.basename(__FILE__)} <path to YAML file>"
exit 0
end
config = YAML::load(File.open(ARGV[0], "r"))
global = config['Global']