MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / ArgumentsManager

Class ArgumentsManager

console/modules/argumentsManager.py:2–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1
2class ArgumentsManager:
3 def __init__(self) -> None:
4 pass
5
6 def _get_arguments(self, args, length=2):
7 arguments = args.arg_list
8 value,option = None, None
9 for index, argv in enumerate(arguments):
10 if index == 0:
11 option = argv
12 else:
13 value = '' if value is None else value
14 value+= " " + argv
15
16 return option, value.lstrip() if value is not None else None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected