Skip to content

Commit

Permalink
Merge pull request #1 from YasunoriHigashiyama/m2
Browse files Browse the repository at this point in the history
エラー対策
  • Loading branch information
5t111111 committed Jan 15, 2015
2 parents 277326f + 2f71de1 commit cf534be
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions altgtags_lib/altgtags/gtags_command.py
Expand Up @@ -277,8 +277,7 @@ def parse_args(self, args):
elif args[1] == '--gtags-remake':
#self.remake_tags()
self._method = 'remake_tags'
elif args[1] == '--gtags-update':
#self.update_tags()
elif args[1] == '--gtags-update' or args[1] == '-u':
self._method = 'update_tags'
else:
# gtags -t <the item provided as the argument>
Expand All @@ -301,6 +300,8 @@ def parse_args(self, args):
#self.gtags_grep(args[2])
self._target_object = args[2]
self._method = 'gtags_grep'
elif args[1] == '--gtags-update' or args[1] == '-u':
self._method = 'update_tags'
else:
return False
else:
Expand Down Expand Up @@ -359,10 +360,15 @@ def gtags_grep(self):
self.__invoke_command(cmd_line)

def remake_tags(self):
cmd_line = [self._gtags_cmd, '-v', '--gtagsconf', self._gtags_conf]
if self._gtags_conf == None:
cmd_line = [self._gtags_cmd, '-v']
else:
cmd_line = [self._gtags_cmd, '-v', '--gtagsconf', self._gtags_conf]
self.__run_gtags(cmd_line)

def update_tags(self):
cmd_line = [self._gtags_cmd, '-i', '-v', '--gtagsconf', self._gtags_conf]
if self._gtags_conf == None:
cmd_line = [self._gtags_cmd, '-i', '-v']
else:
cmd_line = [self._gtags_cmd, '-i', '-v', '--gtagsconf', self._gtags_conf]
self.__run_gtags(cmd_line)

0 comments on commit cf534be

Please sign in to comment.