diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-12-16 20:44:25 -0500 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-12-16 20:44:25 -0500 |
| commit | 416c8a90cceb37c3bf8c8560d285b4be8e6d1cc6 (patch) | |
| tree | 28f541c92d9da443084b83d5bd108600fa2c047d /base/src/main/java/bjc/utils/cli/Command.java | |
| parent | 6dcadc360dafdd12142d53327f44579379a4c9dd (diff) | |
Minor tweaks
Diffstat (limited to 'base/src/main/java/bjc/utils/cli/Command.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/cli/Command.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/src/main/java/bjc/utils/cli/Command.java b/base/src/main/java/bjc/utils/cli/Command.java index 7451cf7..5f4a65b 100644 --- a/base/src/main/java/bjc/utils/cli/Command.java +++ b/base/src/main/java/bjc/utils/cli/Command.java @@ -11,7 +11,9 @@ public interface Command { * * @return A command that serves as an alias to this one */ - Command aliased(); + default Command aliased() { + return new DelegatingCommand(this); + }; /** * Get the handler that executes this command |
