X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=usage.go;h=56ccf574faf9277932f2b41dc78ea2d983beab7c;hb=c41fe0fbd726f397636b569161f286821e221885;hp=52a27685dabc574f4470b61d132e44f0866c215e;hpb=6f6dd2ce966c3c6c2f7d49f13498c192cffc1ea4;p=goredo.git diff --git a/usage.go b/usage.go index 52a2768..56ccf57 100644 --- a/usage.go +++ b/usage.go @@ -24,7 +24,7 @@ import ( ) const ( - Version = "1.3.0" + Version = "1.7.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 [...] @@ -86,14 +87,31 @@ 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 [target ...] + +List all currently known targets.` + case "redo-sources": + d = `Usage: redo-sources [target ...] + +List all currently known source files.` + case "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\nOptions:\n", d) + fmt.Fprintf(os.Stderr, "%s\n\nCommon options:\n", d) flag.PrintDefaults() fmt.Fprintln(os.Stderr, ` Additional environment variables: @@ -102,5 +120,6 @@ Additional environment variables: REDO_TOP_DIR -- do not search for .do above that directory (it can contain .redo/top as an alternative) REDO_INODE_NO_TRUST -- do not trust inode information (except for size) - and always check file's hash`) + and always check file's hash + REDO_MAKE -- bmake/gmake/none(default) jobserver protocol compatibility`) }