Skip to content
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

Ability to use show attribute to display a multiword string #33

Closed
sidbav opened this issue Nov 29, 2019 · 4 comments
Closed

Ability to use show attribute to display a multiword string #33

sidbav opened this issue Nov 29, 2019 · 4 comments
Labels
feature Feature request

Comments

@sidbav
Copy link

sidbav commented Nov 29, 2019

I want to be able to display a multiword string when hitting tab using the show attribute. I have tried to use the following syntax:

aa<int32 show:"A number">

But I get an error stating complaining about the "

When I try to use the following

aa<int32 show:A\ number>

When I tab it see the following:

cli> aa 
<A\ number>

Any way to use show so that I see the following:

cli> aa 
<A number>
@sidbav sidbav changed the title Ability to use show attribute to display a string Ability to use show attribute to display a multiword string Nov 29, 2019
@olofhagsand
Copy link
Member

olofhagsand commented Nov 30, 2019

You can do this:

aa<a:int32 show:number>("A number");

which gives:

cli> aa ?
  <number>              A number

But if I understand you correctly you want to have:

cli> aa ?
  <a number>            A number

Is that correct?

@sidbav
Copy link
Author

sidbav commented Nov 30, 2019

No I would like to have the option to use show so that I can display a multi word string when I tab.

So for example if I have the following syntax.

aa<int32 show:"Some number">("some help description");

So that when a user hits tab they see the following:

cli> aa (User hits TAB) 
  <Some number>

Then why I do ? I would see the following:

cli> aa ? 
  <Some number>            some help description

I do not want to necessarily display the variable name for the keyword, but some text to describe a valid input for example or even example input. I would like to keep that separate from the help text. Would something like this be possible?

@olofhagsand
Copy link
Member

Added fix, please verify.

@sidbav
Copy link
Author

sidbav commented Dec 2, 2019

Yes it is working as expected, thanks!

@sidbav sidbav closed this as completed Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants