/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.performizeit.threadtop;
import com.lexicalscope.jewel.cli.ArgumentValidationException;
import com.lexicalscope.jewel.cli.CliFactory;
/**
*
* @author yadidh
*/
public class M2 {
public static void main(String args[]) {
try {
ThreadTopOptions opts = CliFactory.parseArguments(ThreadTopOptions.class, args);
System.out.println(opts.getTimeToMeasure());
System.out.println(opts.isMeasureThreadCPU());
System.out.println(opts.isMeasureThreadContention());
System.out.println(opts.isMeasureThreadAlloc());
System.out.println(opts.getSort());
System.out.println(opts.isPrintStackTrace());
System.out.println(opts.getStackTraceEntriesNo());
System.out.println(CliFactory.createCli(ThreadTopOptions.class).getHelpMessage());
} catch (ArgumentValidationException ex) {
System.out.println(ex.getMessage());
System.out.println(CliFactory.createCli(ThreadTopOptions.class).getHelpMessage());
}
}
}