aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-04 16:00:44 +1100
committerredmatrix <redmatrix@redmatrix.me>2015-11-04 16:00:44 +1100
commit8377aa72a86e49ac77cb77b52644456043a0d199 (patch)
treed3a9a6dc8e0e20f5f3d86b7411a216c2e51e3ccb /doc
parentc57926d7996fc3f90bb35b02912cf26900517c84 (diff)
parent288697cda28712c6d02f36d2882024f1d6d97d7c (diff)
downloadvolse-hubzilla-8377aa72a86e49ac77cb77b52644456043a0d199.tar.gz
volse-hubzilla-8377aa72a86e49ac77cb77b52644456043a0d199.tar.bz2
volse-hubzilla-8377aa72a86e49ac77cb77b52644456043a0d199.zip
Merge pull request #120 from kenrestivo/document-argv
Add documentation for argv/argc.
Diffstat (limited to 'doc')
-rw-r--r--doc/developers.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/developers.bb b/doc/developers.bb
index e9dddc695..6f7752577 100644
--- a/doc/developers.bb
+++ b/doc/developers.bb
@@ -64,6 +64,8 @@ In the interests of consistency we adopt the following code styling. We may acce
[li] Generally speaking, opening braces go on the same line as the thing which opens the brace. They are the last character on the line. Closing braces are on a line by themselves. [/li]
+[li] Some functions take arguments in argc/argv style like main() in C or function args in bash or Perl. Urls are broken up within a module. e.g, given "http://example.com/module/arg1/arg2", then $this->argc will be 3 (integer) and $this->argv will contain: [0] => 'module', [1] => 'arg1', [2] => 'arg2'. There will always be one argument. If provided a naked domain URL, $this->argv[0] is set to "home".[/li]
+
[b]See Also[/b]
[zrl=[baseurl]/help/sql_conventions]SQL Conventions[/zrl]