#ifndef TEST
int main(int argc, char** argv) {
+ long int line_num = 0;
#define BOOLARG() (EOPTARG(usage()), optarg_[0] == '0' ? 0 : 1)
#define STRARG() (EOPTARG(usage()))
+ #define NUMARG() (strtoul(EOPTARG(usage()),0,0))
OPTBEGIN {
case 'I': CopyIndent = BOOLARG(); break;
case 'W': TrimOnSave = BOOLARG(); break;
case 'N': DosLineFeed = BOOLARG(); break;
case 'T': TagString = STRARG(); break;
case 'C': ShellCmd[0] = STRARG(); break;
+ case 'l': line_num = NUMARG(); break;
} OPTEND;
/* setup the shell */
char* path = realpath(*argv, NULL);
if (!path) path = *argv; /* if file doesnt exist, use the original name */
view_init(win_view(EDIT), path);
+ view_setln(win_view(EDIT), line_num);
win_title(path);
win_prop_set("TIDE_FILE", "file", path);
} else {