Command line arguments are supplied to the B4P interpreter in addition to the B4P file name. The path and file name of the B4P program is actually considered as
the first command line argument. Additional arguments can be provided in text form, such as further file names, names, locations, values, etc.
Following rules apply:
Ways to provide command line arguments:
The B4P program can access all command line arguments in the system variable command line arguments[n] which is an array.
Use the function member count() to check for the number of command line arguments provided, e.g. member count(command line arguments[]).
n[] = member count( command line arguments[] );
echo( "Number of command line arguments: ", n[] );
for (a[]=0, a[]<n[], a[]++) echo("Argument ", a[], ": ", command line arguments[a[]] );
Number of command line arguments: 1
Argument 0: Example_Program.b4p