From 1a89bd05e3750cf5913ac61dc4fe8ea476371524 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 31 Mar 2009 21:12:01 -0400 Subject: [PATCH] add usage info if called w/o arguments --- .gitignore | 2 ++ minicomic-backend.rb | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5236e1e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ + diff --git a/minicomic-backend.rb b/minicomic-backend.rb index 1753af1..2df9303 100755 --- a/minicomic-backend.rb +++ b/minicomic-backend.rb @@ -411,6 +411,11 @@ end any_rebuilt = false any_rsync = false +if !ARGV[0] + puts "Usage: #{File.basename(__FILE__)} " + exit 0 +end + config = YAML::load(File.open(ARGV[0], "r")) global = config['Global']