Skip to content

Commit 9fc5725

Browse files
committed
Fixed commands without implementation
This makes sens to declare help on "intermediate" commands such as "show". Problem was that commands would have an implementation method registered even if no implementation was specified.
1 parent 3b2be79 commit 9fc5725

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

command-interface/macros.dylan

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ define macro command-aux-definer
3333
?bindings;
3434
?implementation;
3535
end method;
36-
let %command = build-command(%root, %symbols, handler: %handler, ?keywords);
36+
let %command = build-command(%root, %symbols, ?keywords);
3737
?parameters
3838
end }
3939

@@ -71,6 +71,8 @@ define macro command-aux-definer
7171
{ } => { }
7272
{ help ?text:expression; ... }
7373
=> { help: ?text, ... }
74+
{ implementation ?:expression; ... }
75+
=> { handler: %handler, ... }
7476
{ ?other:*; ... } => { ... }
7577

7678
// definitions that define parameters

0 commit comments

Comments
 (0)