File: Option.java

package info (click to toggle)
libsoptions-java 0.0~svn141-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 176 kB
  • sloc: java: 257; makefile: 62; sh: 16
file content (31 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
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; }
}