Add -f flag to force execution even when task is up-to-date

This commit is contained in:
Andrey Nering
2017-03-01 20:21:36 -03:00
parent e95e2e8e8a
commit 131499b66d
2 changed files with 7 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ hello:
'''
`)
}
flag.BoolVar(&task.Force, "f", false, "forces execution even when the task is up-to-date")
flag.Parse()
task.Run()
}