Gear.Turbo

2011年8月29日 #

解析命令行的正则表达式

摘要: 问题最近在做一个控制台的程序,程序提供给用户几个命令。每个命令都可以接受多个参数,参数可以有值也可以没值。另外,如若参数中有空格则可用双引号(“”)把参数括起来以表示是一个整体。一些简单的命令例子如下:regularCommand argument /a: value /b: value2 /argument: value3 regularCommand argument /a: value /b: value2 /argument: value3 /argumentWithouValue regularCommand /a:value /b:value2 anotherArgu... 阅读全文

posted @ 2011-08-29 11:12 lsp 阅读(2634) 评论(0) 推荐(0) 编辑

导航