summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-22 17:39:46 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-22 17:39:46 -0500
commit7f3667ad0026f94aab0828d464b2c35b3b5a28bc (patch)
tree9ff822d31a8488530fc55ff44b7c60bf92fd60a0
parent0ef3952e8ec797c586b61b02d0ed2850345af027 (diff)
downloaddeheader-7f3667ad0026f94aab0828d464b2c35b3b5a28bc.tar.gz
deheader-7f3667ad0026f94aab0828d464b2c35b3b5a28bc.tar.bz2
deheader-7f3667ad0026f94aab0828d464b2c35b3b5a28bc.tar.xz
deheader-7f3667ad0026f94aab0828d464b2c35b3b5a28bc.zip
Update header comment and bump version.
-rwxr-xr-xdeheader7
1 files changed, 5 insertions, 2 deletions
diff --git a/deheader b/deheader
index 4bb6b98..0de0716 100755
--- a/deheader
+++ b/deheader
@@ -2,17 +2,20 @@
"""\
deheader -- find (optionally remove) unneeded includes in C or C++ sourcefiles.
-Usage: deheader [-h] [-v] [-r] [-i str] [sourcefiles]
+Usage: deheader [-h] [-v] [-r] [-i pattern] [-x pattern] [sourcefiles]
-h, --help Emit this help message and quit.
-m, --maker Set the build command (by default "make")
-i, --ignore Ignore (don't remove) headers matching the argument regexp
-r, --remove Remove the final set of unneeded headers
-v, --verbose Be chatty about what you're doing.
+ -x, --exclude Exclude files matching regexp
+ -V, --version Emit version and exit.
This tool takes a list of C or C++ sourcefiles and generates a report
on which #includes can be omitted from them -- the test, for each foo.c
or foo.cc or foo.cpp, is simply whether 'rm foo.o; make foo.o' returns a
zero status. Optionally, with the -r option, the unneeded headers are removed.
+The tool also reports on headers required for strict portability.
If a sourcefile argument is a directory, the report is generated on all source
files beneath it. Subdirectories beginning with a dot are ignored. If no
@@ -32,7 +35,7 @@ BATON_DEBUG = 1
PROGRESS_DEBUG = 2
COMMAND_DEBUG = 3
-version = "0.4"
+version = "0.5"
# Difference in various compiler implementations and OSes mean that for cross-
# platform compatibility you sometimes want to leave "unneeded" headers alone