You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know I must be missing something here, but what is the actual process of determining when a predefined flag is passed into the script endpoint? I've resorted to writing my own function to parse the $_SERVER['argc'] array.
Pretty sure the library is supposed to be taking care of this for me already, right?
The text was updated successfully, but these errors were encountered:
The commando instance contains the token values once they have been parsed by commando. you can use the parse function manually, or kick of the parsing by accessing the object like an array using the option or argument name as the key like so: $opValue = $command[$opName];
There are also a few useful functions for this like getArguments, getFlags, and getOptions that can be used. All of those functions will also force the token list to be parsed by Commando if it has not already done so.
I know I must be missing something here, but what is the actual process of determining when a predefined flag is passed into the script endpoint? I've resorted to writing my own function to parse the
$_SERVER['argc']
array.Pretty sure the library is supposed to be taking care of this for me already, right?
The text was updated successfully, but these errors were encountered: