MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / Args

Class Args

pipcl.py:1207–1223  ·  view source on GitHub ↗

Iterates over argv items.

Source from the content-addressed store, hash-verified

1205 pass
1206
1207 class Args:
1208 '''
1209 Iterates over argv items.
1210 '''
1211 def __init__( self, argv):
1212 self.items = iter( argv)
1213 def next( self, eof=ArgsRaise):
1214 '''
1215 Returns next arg. If no more args, we return <eof> or raise an
1216 exception if <eof> is ArgsRaise.
1217 ''&#x27;
1218 try:
1219 return next( self.items)
1220 except StopIteration:
1221 if eof is ArgsRaise:
1222 raise Exception('Not enough args')
1223 return eof
1224
1225 command = None
1226 opt_all = None

Callers 1

handle_argvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…