1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-29 17:38:12 -07:00

Display usage when no args.

This commit is contained in:
Cedric Beust 2015-10-07 21:39:38 -07:00
parent fe8ab78bdd
commit 172e0ac6a1
2 changed files with 6 additions and 1 deletions

View file

@ -109,6 +109,8 @@ private class Main @Inject constructor(
//
Wrapper().install()
ProjectGenerator().run(args)
} else if (args.usage || args.targets.isEmpty()) {
jc.usage()
} else {
if (! buildFile.exists()) {
jc.usage()