diff options
author | mikaelpeltier <mikaelpeltier@google.com> | 2015-04-08 11:19:03 +0200 |
---|---|---|
committer | mikaelpeltier <mikaelpeltier@google.com> | 2015-04-08 11:19:03 +0200 |
commit | a9ebd7b80e15aabeeec4191a11555b2b51f79960 (patch) | |
tree | 7722977429fce2e4eb724fc3ca7673ed2cde1cb9 | |
parent | cd453954fb691c0c03ee4a2c54ee4402efb66b8f (diff) | |
download | toolchain_jill-a9ebd7b80e15aabeeec4191a11555b2b51f79960.zip toolchain_jill-a9ebd7b80e15aabeeec4191a11555b2b51f79960.tar.gz toolchain_jill-a9ebd7b80e15aabeeec4191a11555b2b51f79960.tar.bz2 |
Remove usage of the deprecated method setUsageWidth
Change-Id: If8f41f149ffd03336d3ad3364fa9abf4e489133d
-rw-r--r-- | jill/src/com/android/jill/Main.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jill/src/com/android/jill/Main.java b/jill/src/com/android/jill/Main.java index 31bbb9c..1843365 100644 --- a/jill/src/com/android/jill/Main.java +++ b/jill/src/com/android/jill/Main.java @@ -21,6 +21,7 @@ import com.android.sched.util.location.NoLocation; import org.kohsuke.args4j.CmdLineException; import org.kohsuke.args4j.CmdLineParser; +import org.kohsuke.args4j.ParserProperties; import java.io.IOException; import java.util.ArrayList; @@ -90,8 +91,8 @@ public class Main { Options options = new Options(); - CmdLineParser parser = new CmdLineParser(options); - parser.setUsageWidth(100); + CmdLineParser parser = + new CmdLineParser(options, ParserProperties.defaults().withUsageWidth(100)); TokenIterator iterator = new TokenIterator(new NoLocation(), args); List<String> list = new ArrayList<String>(); |