X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccan_depends.c;h=6d1f74297b30a01438ca10cb82e2eeaf65a7f962;hp=b055e44eb1f53e1aee4c5e6f42731c195ce66555;hb=38b87a97e4244e03d3f3887c0e632e31a0bfd8df;hpb=747a69435d9f83c0968d9689c4951bc0233ffc5e diff --git a/tools/ccan_depends.c b/tools/ccan_depends.c index b055e44e..6d1f7429 100644 --- a/tools/ccan_depends.c +++ b/tools/ccan_depends.c @@ -12,6 +12,7 @@ int main(int argc, char *argv[]) bool compile = false; bool recurse = true; bool ccan = true; + const char *style = "depends"; if (argv[1] && streq(argv[1], "--direct")) { argv++; @@ -28,8 +29,13 @@ int main(int argc, char *argv[]) argc--; ccan = false; } + if (argv[1] && streq(argv[1], "--tests")) { + argv++; + argc--; + style = "testdepends"; + } if (argc != 2) - errx(1, "Usage: ccan_depends [--direct] [--compile] [--non-ccan]