aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index a78ac2cfe..f8966e8fe 100644
--- a/boot.php
+++ b/boot.php
@@ -1687,3 +1687,14 @@ function build_querystring($params, $name=null) {
}
return $ret;
}
+
+
+// much better way of dealing with c-style args
+
+function argc() {
+ return get_app()->argc;
+}
+
+function argv($x) {
+ return get_app()->argv[$x];
+}