Skip to content

Several questions #225

Answered by c4spar
lowlighter asked this question in Q&A
Jun 28, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @lowlighter, i'm glad you like cliffy!

1) Is there a way do to command aliases ?
Aliases are already supported. But it looks like they are not well documented. Will update the documentation. There are two ways to specify command aliases:

cmd.command("rm, remove <dir>")
# or
cmd.command("rm <dir>").alias("remove")

2) Is it possible to handle unknown options ?
Unknown options are currently not supported but would make sence! Can you open an issue for this? Than i will check how we can implement something like this.
Maybe it would also be nice to specify a regex like pattern for option/command names. But we have to ensure that this doesn't has a huge impact to the perfomance. But somethin…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lowlighter
Comment options

@c4spar
Comment options

Answer selected by lowlighter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants