Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
Args Class Referencefinal

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...
 

Detailed Description

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.

Member Function Documentation

◆ count()

u8 Args::count ( )
static

Get the number of command line arguments.

This method returns the total number of command line arguments passed to the Rishka application.

Returns
The number of command line arguments.

◆ value()

string Args::value ( u8  index)
static

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].

Parameters
indexThe index of the command line argument.
Returns
The value of the command line argument at the specified index.

The documentation for this class was generated from the following files: