示例#1
0
文件: Option.cs 项目: wusher/sloppy
 public void ProcessCommand(Stack<string> stack, Arguments arguements)
 {
     string name = LongName;
     object value;
     if (stack.IsEmpty() || stack.Peek().IsCommand())
         value = null;
     else
         value = stack.Pop();
     arguements.Add(name, value);
     if (Callback != null)
         Callback((value??"").ToString());
 }