Add Exclude to the config as well.

This commit is contained in:
2021-02-09 22:07:40 +10:30
parent 2d1ac3c803
commit 23c0aa2a34
5 changed files with 79 additions and 11 deletions

8
dau.go
View File

@@ -114,7 +114,6 @@ func checkUpdates() {
func parseOptions() {
// Declare the flags to be used
excludeFlag := getopt.StringLong("exclude", 'x', "", "exclude files containing this string")
helpFlag := getopt.BoolLong("help", 'h', "help")
versionFlag := getopt.BoolLong("version", 'v', "show version")
getopt.SetParameters("")
@@ -132,15 +131,8 @@ func parseOptions() {
os.Exit(0)
}
// if !getopt.IsSet("webhook") {
// log.Fatal("ERROR: You must specify a --webhook URL")
// }
// grab the config
config.LoadOrInit()
// overrides from command line
config.Config.Exclude = *excludeFlag
}
func checkFile(path string, f os.FileInfo, err error) error {