From 9fab9d3260290e8eaa2cc0c4b17d7ed6a13c2b62 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Tue, 27 Sep 2016 19:15:32 -0400 Subject: [PATCH] Adding shorthands --- scheduler.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scheduler.go b/scheduler.go index 6cfdbe5..6552ad3 100644 --- a/scheduler.go +++ b/scheduler.go @@ -285,11 +285,13 @@ func (s *electronScheduler) Error(_ sched.SchedulerDriver, err string) { var master = flag.String("master", "xavier:5050", "Location of leading Mesos master") var tasksFile = flag.String("workload", "", "JSON file containing task definitions") -var ignoreWatts = flag.Bool("ignoreWatts", false, "Don't use watts from offers") +var ignoreWatts = flag.Bool("ignoreWatts", false, "Ignore watts in offers") // Short hand args func init(){ - flag.StringVar(tasksFile, "w", "", "JSON file containing task definitions") + flag.StringVar(master, "m", "xavier:5050", "Location of leading Mesos master (shorthand)") + flag.StringVar(tasksFile, "w", "", "JSON file containing task definitions (shorthand)") + flag.BoolVar(ignoreWatts, "i", false, "Ignore watts in offers (shorthand)") } func main() {