2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
14 ENV
->listOptions
->first ();
15 while ((S
= ENV
->listOptions
->get ())) {
17 ENV
->listOptions
->next ();
22 int opts_funcs (DArray
* d_opts
, int & i
)
29 opt
= d_opts
->get (i
);
31 if (EQ (opt
, "--help") || EQ (opt
, "-h")) {
36 if (EQ (opt
, "-V") || EQ (opt
, "--version")) {
37 printf ("Silent Bob 1.7.2\n");
41 if (EQ (opt
, "--file")) {
42 ENV
->sb_cmd
= cmd_file
;
46 if (EQ (opt
, "--the-tt")) {
47 ENV
->sb_cmd
= cmd_the_tt
;
51 if (EQ (opt
, "--structs")) {
52 ENV
->sb_cmd
= cmd_give_structs
;
56 if (EQ (opt
, "--indent")) {
57 ENV
->sb_cmd
= cmd_indent
;
61 if (EQ (opt
, "--tags")) {
62 ENV
->sb_cmd
= cmd_tags
;
66 if (EQ (opt
, "--make-ctags") ||
68 ENV
->sb_cmd
= cmd_makectags
;
72 if (EQ (opt
, "--call-tags") ||
74 SB_FLSET (SB_FLTAGSTYLE
);
75 ENV
->sb_cmd
= cmd_call_tags
;
79 if (EQ (opt
, "--cgrep")) {
80 if (++i
>= d_opts
->get_size ())
83 ENV
->sb_cmd
= cmd_cgrep
;
84 ENV
->cgrep_exp
= d_opts
->get (i
);
88 if (EQ (opt
, "--tags")) {
89 ENV
->sb_cmd
= cmd_tags
;
98 if (EQ (opt
, "--cfiles") ||
104 if (EQ (opt
, "--time-test"))
107 if (EQ (opt
, "--plugins-viewer")) {
112 if (EQ (opt
, "--options")) {