]> Cypherpunks.ru repositories - goredo.git/blobdiff - usage.go
Fix REDO_TRACE workability
[goredo.git] / usage.go
index 52a27685dabc574f4470b61d132e44f0866c215e..179eb15f49a805382d45853068889938e7bc551c 100644 (file)
--- a/usage.go
+++ b/usage.go
@@ -24,7 +24,7 @@ import (
 )
 
 const (
-       Version  = "1.3.0"
+       Version  = "1.4.0"
        Warranty = `Copyright (C) 2020-2021 Sergey Matveev
 
 This program is free software: you can redistribute it and/or modify
@@ -86,6 +86,18 @@ anyway.`
 
 Display .do search paths for specified target. Exits successfully
 if the last .do in output if the found existing one.`
+       case "redo-targets":
+               d = `Usage: redo-targets
+
+List all currently known targets.`
+       case "redo-sources":
+               d = `Usage: redo-sources
+
+List all currently known source files.`
+       case "redo-ood":
+               d = `Usage: redo-ood
+
+List all currently known out-of-date targets.`
        default:
                d = `Usage: goredo -symlinks
 
@@ -93,7 +105,7 @@ goredo expects to be called through the symbolic link to it.
 Available commands: redo, redo-always, redo-cleanup, redo-dot,
 redo-ifchange, redo-ifcreate, redo-log, redo-stamp, redo-whichdo.`
        }
-       fmt.Fprintf(os.Stderr, "%s\n\nOptions:\n", d)
+       fmt.Fprintf(os.Stderr, "%s\n\nCommon options:\n", d)
        flag.PrintDefaults()
        fmt.Fprintln(os.Stderr, `
 Additional environment variables: