kotlinx-cli
kotlinx-cli copied to clipboard
Subcommand aliases
Allow define aliases for subcommands. Rationale
- Sometimes different names of some subcommand better match different use cases. I.e.
backup restore-snapshotandbackup rollback-tohave some meaning but one of them can be more expressive in different cases - For deprecation reasons. For example, there was the command
backupwhich is backing up the directory. After some time one decide to add the commandbackup-fileand rename the first one tobackup-dir, but still leavebackupas alias ofbackup-dirfor compatibility