-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add command abbreviation or command alias #59
Comments
You are right that this may make sense. However, it's not straightforward to implement and adds another layer of complexity. Couldn't you just use the option form for commands instead, e.g. |
I could use some I don't know the detail implementation of ArgParse, but I imagine that it would be possible to considere a command as a first positional argument, then try to match it as an abbrev of an existing command (else howl!). Here is a function I've stollen from a Ruby Library, then converted to Julia.
|
You can use flag options as commands. For example, you can have an option |
Thank you very much Carlo. I missed the fact that dashed-options can be used as command names. So one can easily abbreviate them. But commands starting with dashes are not natural as Command Like Interfaces. So I am probably going to keep using standard command names (but with short names and without aliases). |
Bonjour,
I'd like to be able to enter one of the shortest unambiguous abbreviation in place of a command name. As it doesn't seam possible, is it possible to add some alias to command names?
I've tried the following code but it is rejected:
But this raise the following error :
Regard,
-- Maurice
The text was updated successfully, but these errors were encountered: