소스 검색

Fixed filenames in parse_options()

master
Bert 14 년 전
부모
커밋
45db2881e2
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      options.c

+ 3
- 3
options.c 파일 보기

@@ -40,9 +40,6 @@ void print_version() {
void parse_options(int argc, char **argv) {
int opt;

_options.filenames = (const char**) argv + 1;
_options.filecnt = argc - 1;

while ((opt = getopt(argc, argv, "hv")) != -1) {
switch (opt) {
case '?':
@@ -56,4 +53,7 @@ void parse_options(int argc, char **argv) {
exit(0);
}
}

_options.filenames = (const char**) argv + optind;
_options.filecnt = argc - optind;
}

불러오는 중...
취소
저장