aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/uninclude5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/uninclude b/bin/uninclude
index ac2d98c..812f51b 100755
--- a/bin/uninclude
+++ b/bin/uninclude
@@ -32,6 +32,11 @@ help() {
$ find lib.c main.c | uninclude -E '^#include ' -- cc $CFLAGS
lib.c: 3 lines unincluded
main.c: nothing to uninclude
+
+
+ Remove all non-required "imports" from all files that ends with ".py":
+
+ $ git ls-files | grep '\.py$' | uninclude '^import ' -- pytest
EOF
}