Passing args to apps developed in PhAB

Hi,
Quick question, as the ‘main’ functions is handled elsewhere in a PhAb
app, how to I access argv and argc? I need to make a PhAb app which has
args passed on the command line.

Cheers

Garry

Garry wrote:

Hi,
Quick question, as the ‘main’ functions is handled elsewhere in a
PhAb app, how to I access argv and argc? I need to make a PhAb app which
has args passed on the command line.

Cheers

Garry
Look at the “Working With Code” chapter of the "Photon Microgui

Programer’s Guide". There is an example of blending photon and user
arguments on the command line.

John McClurkin wrote:

Garry wrote:

Hi,
Quick question, as the ‘main’ functions is handled elsewhere in a
PhAb app, how to I access argv and argc? I need to make a PhAb app
which has args passed on the command line.

Cheers

Garry

Look at the “Working With Code” chapter of the “Photon Microgui
Programer’s Guide”. There is an example of blending photon and user
arguments on the command line.

I should have known to look more carefully in the docs, thanks, it’s
working now.