MCPcopy Create free account
hub / github.com/Unipisa/Simu5G / parse_args

Function parse_args

_scripts/extend_simulations_csv.py:29–38  ·  view source on GitHub ↗

Parse the args string to extract ini file and config.

(args_str)

Source from the content-addressed store, hash-verified

27 return 1
28
29def parse_args(args_str):
30 """Parse the args string to extract ini file and config."""
31 # Look for -f <inifile> and -c <config> patterns
32 ini_match = re.search(r'-f\s+(\S+)', args_str)
33 config_match = re.search(r'-c\s+(\S+)', args_str)
34
35 ini_file = ini_match.group(1) if ini_match else "omnetpp.ini"
36 config = config_match.group(1) if config_match else "General"
37
38 return ini_file, config
39
40def create_run_specific_args(original_args, run_number):
41 """Create new args string with specific run number."""

Callers 1

extend_simulations_csvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected