X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=usage.go;h=179eb15f49a805382d45853068889938e7bc551c;hb=468a150138cdc10c3ec5ee00a77db06429b47456;hp=52a27685dabc574f4470b61d132e44f0866c215e;hpb=6f6dd2ce966c3c6c2f7d49f13498c192cffc1ea4;p=goredo.git diff --git a/usage.go b/usage.go index 52a2768..179eb15 100644 --- 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: