1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
//------------------------------------------------------------------------------
//$Author: saulius $
//$Date: 2015-06-05 15:37:31 -0400 (Fri, 05 Jun 2015) $
//$Revision: 51 $
//$URL: svn://saulius-grazulis.lt/libraries/trunk/java/SOptions/Option.java $
//------------------------------------------------------------------------------
class Option {
String short_name;
String long_name;
OptionType option_type;
OptionValue value;
Option( String short_name, String long_name, OptionType opt_type )
{
this.short_name = short_name;
this.long_name = long_name;
this.option_type = opt_type;
}
Option( String short_name, String long_name,
OptionType opt_type, OptionValue opt_value )
{
this.short_name = short_name;
this.long_name = long_name;
this.option_type = opt_type;
this.value = opt_value;
}
int proc( String argv[], int i ) { return i; }
}
|