hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 96af158a3bfed026d400b64413f82bdd97ad3ad6
parent eb390c6626e3a35c749523e3d449b27a225b95fd
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sat,  9 Dec 2023 21:17:45 -0500

hare deps: print more intuitive msg when no deps

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mcmd/hare/deps.ha | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/cmd/hare/deps.ha b/cmd/hare/deps.ha @@ -84,6 +84,11 @@ fn deps(name: str, cmd: *getopt::command) (void | error) = { }; fn deps_graph(mods: *[]module::module) void = { + if (len(mods) == 1 && len(mods[0].deps) == 0) { + fmt::println(mods[0].name, "has no dependencies")!; + return; + }; + let links: []link = []; defer free(links); let depth: []uint = alloc([0...], len(mods));