## Core
Class HelloWorldCommandlet

source: C:\XIII\Core\Classes\HelloWorldCommandlet.uc

    Core.Object
       |
       +--Core.Commandlet
          |
          +--Core.HelloWorldCommandlet

Direct Known Subclasses:None

class HelloWorldCommandlet
extends Core.Commandlet

    //=============================================================================
    /// UnrealScript "hello world" sample Commandlet.
    ///
    /// Usage:
    ///     ucc.exe HelloWorld
    //=============================================================================

Variables
`int` | `intparm`
`string` | `strparm`

Function Summary
`int` | `Main(string Parms)`

Source Code

    00001	//=============================================================================
    00002	/// UnrealScript "hello world" sample Commandlet.
    00003	///
    00004	/// Usage:
    00005	///     ucc.exe HelloWorld
    00006	//=============================================================================
    00007	class HelloWorldCommandlet
    00008		extends Commandlet;
    00009
    00010	var int intparm;
    00011	var string strparm;
    00012
    00013	function int Main( string Parms )
    00014	{
    00015		log( "Hello, world!" );
    00016		if( Parms!="" )
    00017			log( "Command line parameters=" $ Parms );
    00018		if( intparm!=0 )
    00019			log( "You specified intparm=" $ intparm );
    00020		if( strparm!="" )
    00021			log( "You specified strparm=" $ strparm );
    00022		return 0;
    00023	}
    00024
    00025	defaultproperties
    00026	{
    00027	     HelpCmd="HelloWorld"
    00028	     HelpOneLiner="Sample 'hello world' commandlet"
    00029	     HelpUsage="HelloWorld (no parameters)"
    00030	     HelpParm(0)="IntParm"
    00031	     HelpParm(1)="StrParm"
    00032	     HelpDesc(0)="An integer parameter"
    00033	     HelpDesc(1)="A string parameter"
    00034	}

End Source Code