MCPcopy
hub / github.com/ranger/ranger / arg

Method arg

ranger/api/commands.py:140–145  ·  view source on GitHub ↗

Returns the nth space separated word

(self, n)

Source from the content-addressed store, hash-verified

138
139 # Easy ways to get information
140 def arg(self, n):
141 """Returns the nth space separated word"""
142 try:
143 return self.args[n]
144 except IndexError:
145 return ""
146
147 def rest(self, n):
148 """Returns everything from and after arg(n)"""

Callers 15

parse_setting_lineMethod · 0.95
executeMethod · 0.80
executeMethod · 0.80
_tab_argsMethod · 0.80
executeMethod · 0.80
tabMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
tabMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected