Hook method executed just after a command dispatch is finished. This method is a stub in Cmd; it exists to be overridden by subclasses. line is the command line which was executed, and stop is a flag which indicates whether execution will be terminated after the call to postcmd(); this will be the return value of the onecmd() method. The return value of this method will be used as the new value for the internal flag which corresponds to stop; returning false will cause interpretation to continue.
实现the ^{} method :
在执行每个cmd之后,将对对象调用该方法(从
cmd.Cmd
继承)。只要您从这个方法返回False
,执行就会继续。你知道吗相关问题 更多 >
编程相关推荐