Skip to content

Commit

Permalink
Issue #424: Add CLI options for specific query execution - SNMP
Browse files Browse the repository at this point in the history
* Reformatted the code.
  • Loading branch information
CherfaElyes committed Dec 4, 2024
1 parent 3d89c7d commit 29bcbe2
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
/**
* A command-line interface (CLI) for executing SNMP queries.
* <p>
* This class supports SNMP operations such as Get, Get Next, and Walk.
* It provides validation for configurations and query parameters
* This class supports SNMP operations such as Get, Get Next, and Walk.
* It provides validation for configurations and query parameters
* and integrates with the CLI extension framework to execute SNMP queries.
* </p>
*
* Implements {@link IQuery} to generate SNMP-specific query JSON
*
* Implements {@link IQuery} to generate SNMP-specific query JSON
* and {@link Callable} to support execution via a command-line tool.
*/
@Data
Expand All @@ -76,7 +76,12 @@ public class SnmpCli implements IQuery, Callable<Integer> {
@Option(names = "--snmp-walk", order = 3, paramLabel = "OID", description = "SNMP Walk request")
String walk;

@Option(names = { "-h", "-?", "--help" }, order = 4, usageHelp = true, description = "Shows this help message and exits")
@Option(
names = { "-h", "-?", "--help" },
order = 4,
usageHelp = true,
description = "Shows this help message and exits"
)
boolean usageHelpRequested;

@Option(names = "-v", order = 5, description = "Verbose mode (repeat the option to increase verbosity)")
Expand Down

0 comments on commit 29bcbe2

Please sign in to comment.