Logo Search packages:      
Sourcecode: yagtd version File versions  Download package

def yagtd::GTD::_parse_args (   self,
  args 
) [private]
Parse command arguments= num + str.

Definition at line 163 of file yagtd.py.

                               :
        """Parse command arguments= num + str."""

        num = string = None
        
        # Parse command args
        n = re.search(r"^(?x)(\d+)", args)  # num
        s = re.search(r" +([@!:\-\w ]+)$", args)  # string

        if n: num = int(n.group(1))
        if s: string = s.group(1)

        #print "parsed", num, string
        return (num, string)


Generated by  Doxygen 1.6.0   Back to index