Es.getargc

From EventScripts Community Encyclopedia
This article is a stub. Please help by adding to it.



Method: getargc

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Returns the number of arguments sent to a command! This is the Python equivalent of: http://www.eventscripts.com/pages/es_getargc

Arguments

(None)


Examples

def load():
    es.regsaycmd("test", "script/test", "This is a test command")
 
def test():
    var = es.getargc()

So if you type test arg1 arg2 arg3 it would return 4 because there are 3 args plus the command test

Notes

(None)


See Also

blog comments powered by Disqus