question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@Syntax doesn't work

See original GitHub issue

Hi! I set @Syntax annotation to method but if i write incorrect command i have template syntax command:

Usage: <c2>{command}</c2> <c3>{syntax}</c3>

Code:


@CommandAlias("eastereggs|ee")
public class ListCategoryCommand extends BaseCommand {

    @Subcommand("list")
    @CommandPermission("eastereggs.admin")
    @Syntax("[page]")
    @Description("List of easter eggs")
    public void onListCategory(Player player, @Optional @Single @Default("1") Integer page) {

Screenshot: image

What’s wrong?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
charlie-maddexcommented, Sep 10, 2022

@kyngs No problem! You’re not the only one aha

0reactions
kyngscommented, Sep 10, 2022

BTW: You can also use the @Name annotation directly on the parameter to specify a custom argument name.

EDIT: OOF, I’ve mentioned someone, sorry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vim Syntax Highlighting does not work - Stack Overflow
I've installed a fresh Arch Linux system on my laptop and downloaded the vim package. I haven't altered the . vimrc file, but...
Read more >
Javascript syntax highlighting it not working
I have an .html file which is part of a large project, and in the middle of the file, syntax highlighting just flat...
Read more >
Syntax highlighting does not work in the advanced editor
I use. - Microsoft Office 2019 // Version 2112 (build 14729.20068). How do I enable syntax highlighting? Why doesn't syntax highlighting work?
Read more >
Syntax highlighting doesn't work after adding a file and ...
Syntax highlighting doesn't work after adding a file and manually setting the PHP extension. From the project tab, if I right click in...
Read more >
The syntax highlighting doesn't work when creating a new file ...
The syntax highlighting doesn't work when creating a new file from a template. When creating a new file in a repository from a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found