]> Cypherpunks.ru repositories - goredo.git/blobdiff - usage.go
redo-affects
[goredo.git] / usage.go
index 80bea559a98c7f6bb9e1bcc89759e5fe35aeb04e..b18c93b4d00a685df7a12b3f03710cbe0b4016d0 100644 (file)
--- a/usage.go
+++ b/usage.go
@@ -24,7 +24,7 @@ import (
 )
 
 const (
-       Version  = "1.3.0"
+       Version  = "1.6.0"
        Warranty = `Copyright (C) 2020-2021 Sergey Matveev
 
 This program is free software: you can redistribute it and/or modify
@@ -46,7 +46,8 @@ func usage(cmd string) {
        case "redo":
                d = `Usage: redo [options] [target ...]
 
-Forcefully and *sequentially* build specified targets.`
+Forcefully and *sequentially* build specified targets.
+If no targets specified, then use "all" one.`
        case "redo-ifchange":
                d = `Usage: redo-ifchange target [...]
 
@@ -87,23 +88,28 @@ 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
+               d = `Usage: redo-targets [target ...]
 
 List all currently known targets.`
        case "redo-sources":
-               d = `Usage: redo-sources
+               d = `Usage: redo-sources [target ...]
 
 List all currently known source files.`
        case "redo-ood":
-               d = `Usage: redo-ood
+               d = `Usage: redo-ood [target ...]
 
 List all currently known out-of-date targets.`
+       case "redo-affects":
+               d = `Usage: redo-affects target [...]
+
+List all targets that will be affected by changing the specified ones.`
        default:
                d = `Usage: goredo -symlinks
 
 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.`
+Available commands: redo, redo-affects, redo-always, redo-cleanup,
+redo-dot, redo-ifchange, redo-ifcreate, redo-log, redo-ood,
+redo-sources, redo-stamp, redo-targets, redo-whichdo.`
        }
        fmt.Fprintf(os.Stderr, "%s\n\nCommon options:\n", d)
        flag.PrintDefaults()