add documentation
This commit is contained in:
parent
12f8b0630d
commit
038611bcb4
2 changed files with 13 additions and 1 deletions
12
boot.php
12
boot.php
|
|
@ -1961,11 +1961,21 @@ function current_load() {
|
|||
return max($load_arr);
|
||||
}
|
||||
|
||||
// much better way of dealing with c-style args
|
||||
/**
|
||||
* @brief get c-style args
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
function argc() {
|
||||
return get_app()->argc;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the value of a argv key
|
||||
*
|
||||
* @param int $x argv key
|
||||
* @return string Value of the argv key
|
||||
*/
|
||||
function argv($x) {
|
||||
if(array_key_exists($x,get_app()->argv))
|
||||
return get_app()->argv[$x];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue