2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
10 int opts_funcs (DArray
* d_opts
, int & i
)
17 opt
= d_opts
->get (i
);
19 if (EQ (opt
, "--help") || EQ (opt
, "-h")) {
24 if (EQ (opt
, "-V") || EQ (opt
, "--version")) {
29 if (EQ (opt
, "--file")) {
30 ENV
->sb_cmd
= cmd_file
;
34 if (EQ (opt
, "--the-tt")) {
35 ENV
->sb_cmd
= cmd_the_tt
;
39 if (EQ (opt
, "--give-structs")) {
40 ENV
->sb_cmd
= cmd_give_structs
;
44 if (EQ (opt
, "--indent")) {
45 ENV
->sb_cmd
= cmd_indent
;
49 if (EQ (opt
, "--tags")) {
50 ENV
->sb_cmd
= cmd_tags
;
54 if (EQ (opt
, "--make-ctags") ||
56 ENV
->sb_cmd
= cmd_makectags
;
60 if (EQ (opt
, "--call-tags") ||
62 SB_FLSET (SB_FLTAGSTYLE
);
63 ENV
->sb_cmd
= cmd_call_tags
;
67 if (EQ (opt
, "--cgrep")) {
68 if (++i
>= d_opts
->get_size ())
71 ENV
->sb_cmd
= cmd_cgrep
;
72 ENV
->cgrep_exp
= d_opts
->get (i
);
76 if (EQ (opt
, "--plugins-info")) {
81 if (EQ (opt
, "--tags")) {
82 ENV
->sb_cmd
= cmd_tags
;
86 if (EQ (opt
, "--cfiles") ||
92 if (EQ (opt
, "--time-test"))