static bln PrintArgsCmd( const CArguments *args ) { if( !args ) { SENDLOG( CLogger::Tag::info, "no arguments\n" ); return true; } CStr str; for( ui32 index = 0; index < args->Size(); ++index ) { char a_buf[ 2048 ]; Funcs::PrintToStr( a_buf, 2047, "%s %i\n", args->AgS( index ), args->FmtGet( index ) ); str += a_buf; } SENDLOG( CLogger::Tag::info, "arguments:\n%s\n", str.CStr() ); return true; }
static bln EchoCmd( const CArguments *args ) { if( args ) { CStr str; for( ui32 index = 0; index < args->Size(); ++index ) { str += args->AgS( index ); if( index + 1 < args->Size() ) { str += " "; } } SENDLOG( CLogger::Tag::info, "%s\n", str.CStr() ); } return true; }