add usage info if called w/o arguments
This commit is contained in:
parent
6c0e0261f9
commit
1a89bd05e3
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*~
|
||||||
|
|
@ -411,6 +411,11 @@ end
|
|||||||
any_rebuilt = false
|
any_rebuilt = false
|
||||||
any_rsync = 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"))
|
config = YAML::load(File.open(ARGV[0], "r"))
|
||||||
global = config['Global']
|
global = config['Global']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user