add -dedupe to move dupe TODO and SCHEDULED to DONE
This commit is contained in:
@@ -22,6 +22,7 @@ type config struct {
|
||||
addTags string
|
||||
dryRun bool
|
||||
archive string
|
||||
dedupe bool
|
||||
}
|
||||
|
||||
func getConfig() config {
|
||||
@@ -39,6 +40,7 @@ func getConfig() config {
|
||||
flag.StringVar(&tagss, "tags", "", "csv of all tags to find, -x to invert")
|
||||
flag.StringVar(&config.search, "search", "", "fts case insensitive")
|
||||
flag.BoolVar(&config.edit, "e", false, "edit file")
|
||||
flag.BoolVar(&config.dedupe, "dedupe", false, "dedupe file")
|
||||
flag.BoolVar(&config.dryRun, "dry-run", false, "dry run")
|
||||
flag.StringVar(&config.add, "add", "", "todo to add")
|
||||
flag.StringVar(&config.addSchedule, "add-schedule", "", "todo to add schedule")
|
||||
|
||||
Reference in New Issue
Block a user