void exarg_install_argv ( int  num_arg,

Installs several command lines to be accepted.

This function does the same that exarg_install_arg but making group of argument to be installed in one step.

Think about installing two argument. To install them we have to do the following:

1 exarg_install_arg ("version", "v",
2  EXARG_NONE, "show argument version");
3 exarg_install_arg ("load-library", "l",
4  EXARG_STRING, "load my library");

Because some people doesn't like to perform several calls to the same funcion the previous code can be done by using one step as:

1 exarg_install_argv (2, "version", "v", EXARG_NONE,
2  "show argument version",
3  "load-library", "l",
4  EXARG_STRING, "load my library");

When you install argument this way you have to specify how many argument is going to be installed. In this case that number is

  1. This allows exarg to know how many arguments needs to search inside the argv. If something is wrong while specifying the number or argument or the argument information itself you'll get a segmentation fault or something similar.

While calling to exarg_install_arg the short_name argument can be optional. This is NOT applied to this function. If you don't want to define a short argument name you must use NULL as value.

num_argMust be at least 1 or error will happen and library will abort application execution.

References exarg_end(), and exarg_install_arg().