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.

For consideration: command overloads

See original GitHub issue

A feature requested semi-frequently is command overloads. This would allow having a single command that can take different combinations of arguments. With this, the following would be required:

  • Instead of holding all properties directly, the Command entity would likely need to hold overload entities.
  • Default help and related interfaces would need to be reworked to accommodate these changes.
  • A priority attribute for overloads, which would define the order in which they’d be matched an executed.

Several CNext APIs could also use a facelift.

Edit: minor added note, support for Nullable<T>.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

Emzi0767commented, Jan 26, 2018

Implemented as of 5afb0800374df1da65fc6ae43f0aae291f68a12a.

audigexcommented, Jan 8, 2018

Ah okay - yeah that’s handy for my specific use case 😃 thanks - although I’d still like to see it available if possible

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overloading Procedures - Maple Help
The overload command allows you to split the implementation of a command that operates on different argument types into separate procedures.
Read more >
Function Overloading
C++ lets you specify more than one function of the same name in the same scope. These functions are called overloaded functions, or...
Read more >
Method Overloading in Java
In Java, Method Overloading allows different methods to have the same name, ... For example, consider the following Java program.
Read more >
Identifying a severely overloaded storage | vSphere High ...
When storage is severely overloaded, commands are aborted because the storage subsystem takes far too long to respond to the commands.
Read more >
Is main() overloaded in C++?
No. Both versions cannot co-exist at the same time. One program can have exactly one main function. Which one, depends on your choice....
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 Post

No results found

github_iconTop Related Hashnode Post

No results found