omni::application::set_args
NAME

omni::application::set_args

A function of omni::application

#include <omni/application.hpp>
void omni::application::set_args(const int& argc, const char** argv)
void omni::application::set_args(const int& argc, const wchar_t** argv)

SYNOPSIS

Sets the command line arguments passed in to the underlying omni::application::argparser instance.

top

DESCRIPTION

If you wish to retrieve the arguments passed to your application via the command line through the omni::application::args function, you will need to call this function passing in the argument count and a pointer to the argument array.

top

PARAMETERS top

argc - The argument count passed in to the application.

argv - A pointer to the array of char arguments passed to application via command line.

RETURN VALUES

No return value.

top

ERRORS

It is undefined behavior if argc is less than the actual number of elements in the argument array.

top

CONSIDERATIONS

Care needs to be taken with argument handling as neither this function nor any functions in the argparser class do any argument validation (i.e. user input validation).

top

PLATFORM SPECIFIC

Nothing platform specific to account for.

top

NOTES

No additional notes.

top

EXAMPLE
Currently no examples.
Visit the examples page for more.

top