Minor documentation tweak

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20370 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2004-11-23 09:56:53 +00:00
parent 8ab351aa1e
commit 24f61c4a16
3 changed files with 22 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-11-23 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSProcessInfo.m:
* Source/NSUserDefaults.m:
Improve documentation of --GNU-Debug=...
2004-11-22 Richard Frith-Macdonald <rfm@gnu.org> 2004-11-22 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPropertyList.m: Initialise harmless uninitialised variable * Source/NSPropertyList.m: Initialise harmless uninitialised variable

View file

@ -729,10 +729,17 @@ int main(int argc, char *argv[], char *env[])
/** /**
* Returns an array containing the arguments supplied to start this * Returns an array containing the arguments supplied to start this
* process. NB. In GNUstep, any arguments of the form --GNU-Debug=... * process.<br />
* NB. In GNUstep, any arguments of the form --GNU-Debug=...
* are <em>not</em> included in this array ... they are part of the * are <em>not</em> included in this array ... they are part of the
* debug mechanism, and are hidden so that setting debug variables * debug mechanism, and are hidden so that setting debug variables
* will not effect the normal operation of the program. * will not effect the normal operation of the program.<br />
* Please note, the special <code>--GNU-Debug=...</code> syntax differs from
* that which is used to specify values for the [NSUserDefaults] system.<br />
* User defaults are set on the command line by specifying the default name
* (with a leading hyphen) as one argument, and the default value as the
* following argument. The arguments used to set user defaults are
* present in the array returned by this method.
*/ */
- (NSArray *) arguments - (NSArray *) arguments
{ {

View file

@ -161,7 +161,13 @@ static void updateCache(NSUserDefaults *self)
* <term><code>NSArgumentDomain</code> ... volatile</term> * <term><code>NSArgumentDomain</code> ... volatile</term>
* <desc> * <desc>
* Contains defaults read from the arguments provided * Contains defaults read from the arguments provided
* to the application at startup. * to the application at startup.<br />
* Pairs of arguments are used for this, with the first argument in
* each pair being the name of a default (with a hyphen prepended)
* and the second argument of the pair being the value of the defalt.<br />
* NB. In GNUstep special arguments of the form <code>--GNU-Debug=...</code>
* are used to enable debugging. Despite beginning with a hyphen, these
* are not treated as default keys.
* </desc> * </desc>
* <term>Application (name of the current process) ... persistent</term> * <term>Application (name of the current process) ... persistent</term>
* <desc> * <desc>