Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
|
Class for handling command line arguments in Rishka applications. More...
#include <args.h>
Static Public Member Functions | |
static u8 | count () |
Get the number of command line arguments. More... | |
static string | value (u8 index) |
Get the value of a command line argument at a specific index. More... | |
Class for handling command line arguments in Rishka applications.
The Args class provides static methods for accessing command line arguments passed to the Rishka application. It allows developers to retrieve the number of command line arguments and obtain the values of individual arguments.
|
static |
Get the number of command line arguments.
This method returns the total number of command line arguments passed to the Rishka application.
Get the value of a command line argument at a specific index.
This method retrieves the value of a command line argument at the specified index. The index should be within the range [0, count() - 1].
index | The index of the command line argument. |