boot-clj / boot

Build tooling for Clojure.
https://boot-clj.github.io/
Eclipse Public License 1.0
1.75k stars 180 forks source link

`boot target -h` clears target/ as well as showing help #585

Closed HakimCassimallyBBC closed 6 years ago

HakimCassimallyBBC commented 7 years ago

e.g.

$ boot build
... wait some time...
# Aha!  I wonder if I can preserve target/ to speed up the next build!

$ boot target -h
... some help output

$ find target/   # oh noes, it all got deleted!

In general, asking for help shouldn't also do things, so this feels like a bug.

alandipert commented 7 years ago

Agreed: -h shouldn't do anything. A PR would be most welcome.

DonyorM commented 7 years ago

I'm going to try and take this issue on. Would anyone be willing to point to me the function which clears out the target folder?

DonyorM commented 7 years ago

@alandipert @HakimCassimallyBBC I am no longer seeing this behavior on my machine. Is this issue fixed?

martinklepsch commented 6 years ago

Also could not reproduce this issue, closing.