change default file path from stdin

v0.0.6
Bel LaPointe 2022-01-10 09:44:30 -05:00
parent 42d532ee61
commit 50913b8913
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func main() {
func _main() error { func _main() error {
defaultFilepath, ok := os.LookupEnv("PTTODO_FILE") defaultFilepath, ok := os.LookupEnv("PTTODO_FILE")
if !ok { if !ok {
defaultFilepath = "-" defaultFilepath = "./todo.yaml"
} }
filepath := flag.String("f", defaultFilepath, "($PTTODO_FILE) path to yaml file or dir (starting with root then alphabetical for dir)") filepath := flag.String("f", defaultFilepath, "($PTTODO_FILE) path to yaml file or dir (starting with root then alphabetical for dir)")
filepathToMergeIn := flag.String("g", "", "path to yaml file to merge into -f (modifies f)") filepathToMergeIn := flag.String("g", "", "path to yaml file to merge into -f (modifies f)")