Skip to content

Commit 6f97d3e

Browse files
author
nshaheed
committed
fixed chump update not being able to take in a subcommand
1 parent 51ec158 commit 6f97d3e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

chump-cli/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ int main(int argc, const char **argv) {
282282
}
283283
}
284284
} else if (subcommand == "update") {
285-
if (n_targets != 0) {
285+
if (n_targets != 1) {
286286
cerr << "[chump]: " << TC::blue(subcommand, TRUE)
287-
<< TC::orange(" does not support subcommands...", TRUE) << endl;
287+
<< TC::orange(" requires additional argument...", TRUE) << endl;
288288
cerr << "(run `chump --help` for more information)" << endl;
289289
return 1;
290290
}

makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ build-mac-arm64: setup-mac-arm64
3333
install:
3434
meson install -C builddir-release
3535

36+
install-mac:
37+
meson install -C builddir-arm64
38+
3639
coverage: build-debug
3740
ninja coverage -C builddir-debug
3841

0 commit comments

Comments
 (0)