8000 GitHub - ynfeng/args: 命令行解析
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ynfeng/args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

命令行解析

用法

  Args args = new Args(Schema.of("l:boolean:false p:int:8080 u:string:root f:boolean:false"),ArgLine.of("-l -p 8080 -u root "));
  assertThat(args.argValue("l"), is(true));
  assertThat(args.argValue("p"), is(8080));
  assertThat(args.argValue("u"), is("root"));
  assertThat(args.argValue("f"), is(false));

About

命令行解析

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0