accept -archive to push -f Done into -archive Done
This commit is contained in:
@@ -21,6 +21,7 @@ type config struct {
|
||||
addSchedule string
|
||||
addTags string
|
||||
dryRun bool
|
||||
archive string
|
||||
}
|
||||
|
||||
func getConfig() config {
|
||||
@@ -32,6 +33,7 @@ func getConfig() config {
|
||||
var config config
|
||||
flag.StringVar(&config.target, "f", defaultFilepath, "($PTTODO_FILE) path to yaml file or dir (starting with root then alphabetical for dir)")
|
||||
flag.StringVar(&config.target2, "g", "", "path to yaml file to merge into root of -f")
|
||||
flag.StringVar(&config.archive, "archive", "", "path to yaml file to migrate done")
|
||||
flag.StringVar(&config.root, "root", DUMP_TODO, "path to pretty print ("+fmt.Sprint([]string{DUMP_ALL, DUMP_TODO, DUMP_SCHEDULED, DUMP_DONE})+")")
|
||||
var tagss string
|
||||
flag.StringVar(&tagss, "tags", "", "csv of all tags to find, -x to invert")
|
||||
|
||||
Reference in New Issue
Block a user