From eca5ab21789d81971053f822994d08e333116ee6 Mon Sep 17 00:00:00 2001
From: pjs <pjs@alum.mit.edu>
Date: Wed, 30 Jan 2013 13:02:09 -0800
Subject: [PATCH] default error msg now uses invoked script name rather than
 pre-wired

Signed-off-by: pjs <pjs@alum.mit.edu>
---
 demos/AoModel.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/demos/AoModel.rb b/demos/AoModel.rb
index 4dfef4e..ed101ac 100644
--- a/demos/AoModel.rb
+++ b/demos/AoModel.rb
@@ -126,7 +126,7 @@ if (ARGV.length != 6)
   STDERR.puts "\tMaintenance cycle length (int)"
   STDERR.puts "\tMean repair time (double)"
   STDERR.puts "\tNumber of days to run (int)"
-  STDERR.puts "\nExample: ruby AoModel.rb 50 2 0.01 90 3.0 50\n"
+  STDERR.puts "\nExample: ruby #{File.basename($0)} 50 2 0.01 90 3.0 50\n"
 else
   maxJeeps = ARGV[0].to_i
   maxMaintainers = ARGV[1].to_i
@@ -134,7 +134,6 @@ else
   maintenanceCycleInDays = ARGV[3].to_i
   meanRepairTime = ARGV[4].to_f
   haltTimeInDays = ARGV[5].to_i
-  # Simulation.run(new AoModel(50, 2, 0.01, 90, 3.0, 8.0 * haltTimeInDays))
   AoModel.new(maxJeeps, maxMaintainers, breakdownRate,
               maintenanceCycleInDays, meanRepairTime, 8.0 * haltTimeInDays).run
 end
-- 
GitLab