Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
856a402
Uploaded changes in branch
Jul 16, 2024
1d1d777
Merge remote-tracking branch 'refs/remotes/origin/development' into w…
DianaStrauss Sep 3, 2024
923d6ec
fixed shortening of prompt
DianaStrauss Sep 3, 2024
234e6ef
Merge remote-tracking branch 'refs/remotes/origin/development' into w…
DianaStrauss Sep 3, 2024
629489a
Merged development into web_api_testing
DianaStrauss Sep 3, 2024
64699e3
Fixed shorten prompt bug from merge
DianaStrauss Sep 3, 2024
c141954
Updated Tree of thought so that documentation works like chain of tho…
DianaStrauss Oct 8, 2024
3dc2c4b
Implemented in-context learning for documentation
DianaStrauss Oct 15, 2024
53e5c42
refined openapi generation
DianaStrauss Oct 16, 2024
ea8795b
Updated Tree of thought so that documentation works like chain of tho…
DianaStrauss Oct 16, 2024
4409f4b
Updated Tree of thought so that documentation works like chain of tho…
DianaStrauss Oct 16, 2024
8ef5f8b
Adjusted to only record valid information of rest api
DianaStrauss Oct 23, 2024
8eb5048
optimized prompt generation
DianaStrauss Oct 24, 2024
294ca7c
Added configs for documentation and testing
DianaStrauss Oct 25, 2024
98b510f
Added way of retrieving spotify token
DianaStrauss Oct 25, 2024
975ae85
Refactored code to work with spotify benchmark
DianaStrauss Nov 11, 2024
c70a23b
Refined test cases
DianaStrauss Nov 13, 2024
1fbb37b
Added new security endpoint for testing
DianaStrauss Nov 13, 2024
6fa891d
Added new security endpoint for testing
DianaStrauss Nov 13, 2024
86f8b06
Added more testing information for documentation testing and pentesting
DianaStrauss Nov 15, 2024
cee0726
Added evaluations
DianaStrauss Nov 16, 2024
e210104
Refactored code to be more understandable
DianaStrauss Nov 18, 2024
e228cd8
Added evaluation to documentation
DianaStrauss Nov 18, 2024
3b4b4c4
Refactored code
DianaStrauss Nov 19, 2024
2908860
Restructured testing
DianaStrauss Nov 20, 2024
b1f01dc
Refactored code
DianaStrauss Nov 22, 2024
22e64ff
Refactored code so that more endpoints are found
DianaStrauss Nov 25, 2024
b103831
Refactored code to be clearer
DianaStrauss Nov 28, 2024
e4bbdfa
Added owasp config file and owas openapi sepc
DianaStrauss Dec 2, 2024
f5ef612
Fixed some small bgs
DianaStrauss Dec 4, 2024
c6d33fe
Adjusted test cases to get better analysis
DianaStrauss Dec 4, 2024
96a400d
Added setup for automatic testing
DianaStrauss Dec 5, 2024
b0162fc
refactored test cases
DianaStrauss Dec 5, 2024
3e50596
refactored test cases
DianaStrauss Dec 6, 2024
9306dc6
refactored test cases
DianaStrauss Dec 6, 2024
0f8f445
Refactored tree of thought prompt
DianaStrauss Dec 8, 2024
b62bb01
adjusted gitignore
DianaStrauss Dec 11, 2024
dd0c17e
Refactored classification of endpoints
DianaStrauss Dec 11, 2024
1af2564
Adjusted test cases for better testing
DianaStrauss Dec 12, 2024
340280e
made continuous testing easier
DianaStrauss Dec 12, 2024
04ebcfa
Adjusted prompts to be more tailored
DianaStrauss Dec 15, 2024
1ff5fa2
Refactored and adjusted code to work also for crapi benchmark
DianaStrauss Dec 20, 2024
4dca56d
Cleaned up code
DianaStrauss Jan 9, 2025
5535eb0
Refactored test cases for better vulnerability coverage
DianaStrauss Jan 30, 2025
4ea54fc
Refactored code
DianaStrauss Feb 7, 2025
bf3395b
Added test case
DianaStrauss Feb 17, 2025
1aba1b7
adjusted report
Feb 19, 2025
b4e683b
Refactored code
DianaStrauss Mar 17, 2025
285ca9e
Anonymized readme
Mar 17, 2025
90f4028
Cleaned up code from prints and unnecessary code
DianaStrauss Mar 25, 2025
f9e09b5
Merge remote-tracking branch 'origin/web-api-testing' into web-api-te…
DianaStrauss Mar 25, 2025
b0c2b8b
Merge remote-tracking branch 'origin/development' into merge_web_api_…
DianaStrauss Apr 7, 2025
01ee69e
Adjusted code to work with web_api_testing
DianaStrauss Apr 7, 2025
32b73ab
Refactored code for better readability and testing
DianaStrauss Apr 13, 2025
303baf6
added configuration handler to better test
DianaStrauss Apr 13, 2025
4276f0f
Adjusted test of prompt engineer
DianaStrauss Apr 13, 2025
40f4ff1
Adjusted code for test
DianaStrauss Apr 13, 2025
c6b7ecd
Adjusted code and tests
Apr 14, 2025
44710f3
Adjusted tests and refactored code for better readability
Apr 14, 2025
a695971
Added test cases for pentesting information and test handler + refact…
DianaStrauss Apr 17, 2025
6f05e75
Removed unnecessary prints and added documentation
DianaStrauss Apr 22, 2025
ac58b5a
Removed unnecessary comments
DianaStrauss Apr 22, 2025
02c861f
Fixed Linter issue
DianaStrauss Apr 22, 2025
3a22053
Fixed test imports for pipeline
DianaStrauss Apr 22, 2025
0d34191
Added needed dependencies to pyproject.toml
DianaStrauss Apr 22, 2025
970b72d
Added needed dependencies to pyproject.toml
DianaStrauss Apr 22, 2025
4366132
Added needed dependencies to pyproject.toml
DianaStrauss Apr 22, 2025
9d16710
Removed test case that breaks pipeline
DianaStrauss Apr 22, 2025
9b78c6c
Adjusted init for test_handler
DianaStrauss Apr 22, 2025
9ea050b
Added needed dependencies to pyproject.toml
DianaStrauss Apr 22, 2025
424c989
Merge branch 'development' into merge_web_api_testing_development
DianaStrauss Apr 22, 2025
dbfef99
Added missing dependency
DianaStrauss Apr 22, 2025
696e395
Added missing dependency
DianaStrauss Apr 22, 2025
5e3b112
Added imports in __init__
DianaStrauss Apr 22, 2025
a6653ad
Added files
DianaStrauss Apr 22, 2025
ca17dd0
Moved config files to proper locatin
DianaStrauss Apr 22, 2025
e1b70ab
Merge branch 'development' into merge_web_api_testing_development
DianaStrauss May 13, 2025
78b681d
fixed syntax error in .toml
DianaStrauss May 13, 2025
8ae94fb
Fix linting
DianaStrauss May 13, 2025
9c4842f
Fix linting
DianaStrauss May 13, 2025
4d5122f
Fixed wrong import
DianaStrauss May 13, 2025
600ed43
Fixed import in testing
DianaStrauss May 13, 2025
f33c154
Fixed input variables
DianaStrauss May 13, 2025
e1c8cb4
Fixed input variables
DianaStrauss May 13, 2025
be0ff19
Fixed input variables
DianaStrauss May 13, 2025
985d740
Removed helper files
DianaStrauss May 14, 2025
19afc59
Fixed typo in parsed_information.py name
DianaStrauss May 14, 2025
b5f5688
Fixed typo in parsed_information.py name
DianaStrauss May 14, 2025
f748d5f
Update src/hackingBuddyGPT/usecases/web_api_testing/documentation/par…
DianaStrauss May 14, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix linting
  • Loading branch information
DianaStrauss committed May 13, 2025
commit 9c4842fcaa5df9f985a927323c00946ca6982fda
170 changes: 64 additions & 106 deletions src/hackingBuddyGPT/utils/configurable.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def init(self):
A transparent attribute will also not have its init function called automatically, so you will need to do that on your own, as seen in the Outer init.
The function is upper case on purpose, as it is supposed to be used in a Type context
"""

class Cloned(subclass):
__secret__ = getattr(subclass, "__secret__", False)
__transparent__ = True
Expand Down Expand Up @@ -130,48 +129,46 @@ def indent(level: int) -> str:

@overload
def parameter(
*,
desc: str,
default: T = ...,
init: bool = True,
repr: bool = True,
hash: Optional[bool] = None,
compare: bool = True,
metadata: Optional[Dict[str, Any]] = ...,
kw_only: Union[bool, _MISSING_TYPE] = MISSING,
*,
desc: str,
default: T = ...,
init: bool = True,
repr: bool = True,
hash: Optional[bool] = None,
compare: bool = True,
metadata: Optional[Dict[str, Any]] = ...,
kw_only: Union[bool, _MISSING_TYPE] = MISSING,
) -> T:
...


@overload
def parameter(
*,
desc: str,
default: T = ...,
init: bool = True,
repr: bool = True,
hash: Optional[bool] = None,
compare: bool = True,
metadata: Optional[Dict[str, Any]] = ...,
kw_only: Union[bool, _MISSING_TYPE] = MISSING,
*,
desc: str,
default: T = ...,
init: bool = True,
repr: bool = True,
hash: Optional[bool] = None,
compare: bool = True,
metadata: Optional[Dict[str, Any]] = ...,
kw_only: Union[bool, _MISSING_TYPE] = MISSING,
) -> Field[T]:
...


def parameter(
*,
desc: str,
secret: bool = False,
global_parameter: bool = False,
global_name: Optional[str] = None,
choices: Optional[dict[str, type]] = None,
default: T = MISSING,
init: bool = True,
repr: bool = True,
hash: Optional[bool] = None,
compare: bool = True,
metadata: Optional[Dict[str, Any]] = None,
kw_only: Union[bool, _MISSING_TYPE] = MISSING,
*,
desc: str,
secret: bool = False,
global_parameter: bool = False,
global_name: Optional[str] = None,
choices: Optional[dict[str, type]] = None,
default: T = MISSING,
init: bool = True,
repr: bool = True,
hash: Optional[bool] = None,
compare: bool = True,
metadata: Optional[Dict[str, Any]] = None,
kw_only: Union[bool, _MISSING_TYPE] = MISSING,
) -> Field[T]:
if metadata is None:
metadata = dict()
Expand Down Expand Up @@ -205,8 +202,7 @@ def get_default(key, default):
InstanceResults = NestedCollection[Any]


def get_at(collection: NestedCollection[C], name: list[str], at: int = 0, *, meta: bool = False,
no_raise: bool = False) -> Optional[C]:
def get_at(collection: NestedCollection[C], name: list[str], at: int = 0, *, meta: bool = False, no_raise: bool = False) -> Optional[C]:
if meta:
name = name + ["$"]

Expand Down Expand Up @@ -248,8 +244,7 @@ def set_at(collection: NestedCollection[C], name: list[str], value: C, at: int =
return set_at(collection[name[at]], name, value, at + 1, False)


def dfs_flatmap(collection: NestedCollection[C], func: Callable[[list[str], C], Any],
basename: Optional[list[str]] = None):
def dfs_flatmap(collection: NestedCollection[C], func: Callable[[list[str], C], Any], basename: Optional[list[str]] = None):
if basename is None:
basename = []
output = []
Expand Down Expand Up @@ -368,9 +363,7 @@ def __call__(self, collection: ParsingResults) -> C:
if value is None:
raise ParameterError(f"Missing required parameter '--{'.'.join(self.name)}'", self.name)
if value not in self.choices:
raise ParameterError(
f"Invalid value for parameter '--{'.'.join(self.name)}': {value} (possible values are {', '.join(self.choices.keys())})",
self.name)
raise ParameterError(f"Invalid value for parameter '--{'.'.join(self.name)}': {value} (possible values are {', '.join(self.choices.keys())})", self.name)
choice, parameters = self.choices[value]
self._instance = choice(**{
name: parameter(collection)
Expand All @@ -381,19 +374,15 @@ def __call__(self, collection: ParsingResults) -> C:
return self._instance


def get_inspect_parameters_for_class(cls: type, basename: list[str]) -> dict[
str, tuple[inspect.Parameter, list[str], Optional[dataclasses.Field]]]:
def get_inspect_parameters_for_class(cls: type, basename: list[str]) -> dict[str, tuple[inspect.Parameter, list[str], Optional[dataclasses.Field]]]:
fields = getattr(cls, "__dataclass_fields__", {})
return {
name: (param, basename + [name], fields.get(name))
for name, param in inspect.signature(cls.__init__).parameters.items()
if not (name == "self" or name.startswith("_") or isinstance(name, NoneType))
}


def get_type_description_default_for_parameter(parameter: inspect.Parameter, name: list[str],
field: Optional[dataclasses.Field] = None) -> tuple[
Type, Optional[str], Any]:
def get_type_description_default_for_parameter(parameter: inspect.Parameter, name: list[str], field: Optional[dataclasses.Field] = None) -> tuple[Type, Optional[str], Any]:
parameter_type: Type = parameter.annotation
description: Optional[str] = None

Expand All @@ -406,53 +395,42 @@ def get_type_description_default_for_parameter(parameter: inspect.Parameter, nam
description = field.metadata.get("desc", None)
if field.type is not None:
if not (isinstance(field.type, type) or get_origin(field.type) is Union):
raise ValueError(
f"Parameter {'.'.join(name)} has an invalid type annotation: {field.type} ({type(field.type)})")
raise ValueError(f"Parameter {'.'.join(name)} has an invalid type annotation: {field.type} ({type(field.type)})")
parameter_type = field.type

# check if type is an Optional, and then get the actual type
if get_origin(parameter_type) is Union and len(parameter_type.__args__) == 2 and parameter_type.__args__[
1] is NoneType:
if get_origin(parameter_type) is Union and len(parameter_type.__args__) == 2 and parameter_type.__args__[1] is NoneType:
parameter_type = parameter_type.__args__[0]

return parameter_type, description, default


def try_existing_parameter(parameter_collection: ParameterCollection, name: list[str], typ: type, parameter_type: type,
default: Any, description: str, secret_parameter: bool) -> Optional[ParameterDefinition]:
existing_parameter = get_at(parameter_collection, name,
meta=(typ in (ComplexParameterDefinition, ChoiceParameterDefinition)))
def try_existing_parameter(parameter_collection: ParameterCollection, name: list[str], typ: type, parameter_type: type, default: Any, description: str, secret_parameter: bool) -> Optional[ParameterDefinition]:
existing_parameter = get_at(parameter_collection, name, meta=(typ in (ComplexParameterDefinition, ChoiceParameterDefinition)))
if not existing_parameter:
return None

if existing_parameter.type != parameter_type:
raise ValueError(
f"Parameter {'.'.join(name)} already exists with a different type ({existing_parameter.type} != {parameter_type})")
raise ValueError(f"Parameter {'.'.join(name)} already exists with a different type ({existing_parameter.type} != {parameter_type})")
if existing_parameter.default != default:
if existing_parameter.default is None and isinstance(secret_parameter, no_default) \
or existing_parameter.default is not None and not isinstance(secret_parameter, no_default):
pass # syncing up "no defaults"
or existing_parameter.default is not None and not isinstance(secret_parameter, no_default):
pass # syncing up "no defaults"
else:
raise ValueError(
f"Parameter {'.'.join(name)} already exists with a different default value ({existing_parameter.default} != {default})")
raise ValueError(f"Parameter {'.'.join(name)} already exists with a different default value ({existing_parameter.default} != {default})")
if existing_parameter.description != description:
raise ValueError(
f"Parameter {'.'.join(name)} already exists with a different description ({existing_parameter.description} != {description})")
raise ValueError(f"Parameter {'.'.join(name)} already exists with a different description ({existing_parameter.description} != {description})")
if existing_parameter.secret != secret_parameter:
raise ValueError(
f"Parameter {'.'.join(name)} already exists with a different secret status ({existing_parameter.secret} != {secret_parameter})")
raise ValueError(f"Parameter {'.'.join(name)} already exists with a different secret status ({existing_parameter.secret} != {secret_parameter})")

return existing_parameter


def parameter_definitions_for_class(cls: type, name: list[str], parameter_collection: ParameterCollection) -> dict[
str, ParameterDefinition]:
return {name: parameter_definition_for(*metadata, parameter_collection=parameter_collection) for name, metadata in
get_inspect_parameters_for_class(cls, name).items()}
def parameter_definitions_for_class(cls: type, name: list[str], parameter_collection: ParameterCollection) -> dict[str, ParameterDefinition]:
return {name: parameter_definition_for(*metadata, parameter_collection=parameter_collection) for name, metadata in get_inspect_parameters_for_class(cls, name).items()}


def parameter_definition_for(param: inspect.Parameter, name: list[str], field: Optional[dataclasses.Field] = None, *,
parameter_collection: ParameterCollection) -> ParameterDefinition:
def parameter_definition_for(param: inspect.Parameter, name: list[str], field: Optional[dataclasses.Field] = None, *, parameter_collection: ParameterCollection) -> ParameterDefinition:
parameter_type, description, default = get_type_description_default_for_parameter(param, name, field)
secret_parameter = (field and field.metadata.get("secret", False)) or getattr(parameter_type, "__secret__", False)

Expand All @@ -468,18 +446,14 @@ def parameter_definition_for(param: inspect.Parameter, name: list[str], field: O
name = name[:-1]

if parameter_type in (str, int, float, bool):
existing_parameter = try_existing_parameter(parameter_collection, name, typ=ParameterDefinition,
parameter_type=parameter_type, default=default,
description=description, secret_parameter=secret_parameter)
existing_parameter = try_existing_parameter(parameter_collection, name, typ=ParameterDefinition, parameter_type=parameter_type, default=default, description=description, secret_parameter=secret_parameter)
if existing_parameter:
return existing_parameter
parameter = ParameterDefinition(name, parameter_type, default, description, secret_parameter)
set_at(parameter_collection, name, parameter)

elif get_origin(parameter_type) is Union:
existing_parameter = try_existing_parameter(parameter_collection, name, typ=ChoiceParameterDefinition,
parameter_type=parameter_type, default=default,
description=description, secret_parameter=secret_parameter)
existing_parameter = try_existing_parameter(parameter_collection, name, typ=ChoiceParameterDefinition, parameter_type=parameter_type, default=default, description=description, secret_parameter=secret_parameter)
if existing_parameter:
return existing_parameter

Expand Down Expand Up @@ -508,9 +482,7 @@ def parameter_definition_for(param: inspect.Parameter, name: list[str], field: O
set_at(parameter_collection, name, parameter, meta=True)

else:
existing_parameter = try_existing_parameter(parameter_collection, name, typ=ComplexParameterDefinition,
parameter_type=parameter_type, default=default,
description=description, secret_parameter=secret_parameter)
existing_parameter = try_existing_parameter(parameter_collection, name, typ=ComplexParameterDefinition, parameter_type=parameter_type, default=default, description=description, secret_parameter=secret_parameter)
if existing_parameter:
return existing_parameter

Expand All @@ -527,6 +499,8 @@ def parameter_definition_for(param: inspect.Parameter, name: list[str], field: O
return parameter




@dataclass
class Parseable(Generic[C]):
cls: Type[C]
Expand All @@ -549,9 +523,7 @@ def __post_init__(self):
)

def to_help(self, defaults: list[tuple[str, ParsingResults]], level: int = 0) -> str:
return "\n".join(dfs_flatmap(self._parameter_collection,
lambda _, parameter: parameter.to_help(defaults, level + 1) if not isinstance(
parameter, ComplexParameterDefinition) else None))
return "\n".join(dfs_flatmap(self._parameter_collection, lambda _, parameter: parameter.to_help(defaults, level+1) if not isinstance(parameter, ComplexParameterDefinition) else None))


CommandMap = dict[str, Union["CommandMap[C]", Parseable[C]]]
Expand All @@ -560,10 +532,10 @@ def to_help(self, defaults: list[tuple[str, ParsingResults]], level: int = 0) ->
def _to_help(name: str, commands: Union[CommandMap[C], Parseable[C]], level: int = 0, max_length: int = 0) -> str:
h = ""
if isinstance(commands, Parseable):
h += f"{indent(level)}{COMMAND_COLOR}{name}{COLOR_RESET}{' ' * (max_length - len(name) + 4)} {commands.description}\n"
h += f"{indent(level)}{COMMAND_COLOR}{name}{COLOR_RESET}{' ' * (max_length - len(name)+4)} {commands.description}\n"
elif isinstance(commands, dict):
h += f"{indent(level)}{COMMAND_COLOR}{name}{COLOR_RESET}:\n"
max_length = max(max_length, level * INDENT_WIDTH + max(len(k) for k in commands.keys()))
max_length = max(max_length, level*INDENT_WIDTH + max(len(k) for k in commands.keys()))
for name, parser in commands.items():
h += _to_help(name, parser, level + 1, max_length)
return h
Expand All @@ -577,8 +549,7 @@ def to_help_for_commands(program: str, commands: CommandMap[C], command_chain: O
return h


def to_help_for_command(program: str, command: list[str], parseable: Parseable[C],
defaults: list[tuple[str, ParsingResults]]) -> str:
def to_help_for_command(program: str, command: list[str], parseable: Parseable[C], defaults: list[tuple[str, ParsingResults]]) -> str:
h = f"usage: {program} {COMMAND_COLOR}{' '.join(command)}{COLOR_RESET} {PARAMETER_COLOR}[--help] [--config config.json] [options...]{COLOR_RESET}\n\n"
h += parseable.to_help(defaults)
h += "\n"
Expand All @@ -598,15 +569,7 @@ def instantiate(args: list[str], commands: CommandMap[C]) -> tuple[C, ParsingRes
return _instantiate(args[0], args[1:], commands, [])


def inner(cls) -> Configurable:
cls.name = service_name
cls.host = service_desc
cls.__service__ = True
cls.__parameters__ = get_class_parameters(cls)


def _instantiate(program: str, args: list[str], commands: CommandMap[C], command_chain: list[str]) -> tuple[
C, ParsingResults]:
def _instantiate(program: str, args: list[str], commands: CommandMap[C], command_chain: list[str]) -> tuple[C, ParsingResults]:
if command_chain is None:
command_chain = []

Expand All @@ -629,8 +592,7 @@ def _instantiate(program: str, args: list[str], commands: CommandMap[C], command
raise TypeError(f"Invalid command type {type(command)}")


def get_environment_variables(parsing_results: ParsingResults, parameter_collection: ParameterCollection) -> tuple[
str, ParsingResults]:
def get_environment_variables(parsing_results: ParsingResults, parameter_collection: ParameterCollection) -> tuple[str, ParsingResults]:
env_parsing_results = dict()
for key, value in os.environ.items():
# legacy support
Expand All @@ -648,8 +610,7 @@ def get_environment_variables(parsing_results: ParsingResults, parameter_collect
return ("environment variables", env_parsing_results)


def get_env_file_variables(parsing_results: ParsingResults, parameter_collection: ParameterCollection) -> tuple[
str, ParsingResults]:
def get_env_file_variables(parsing_results: ParsingResults, parameter_collection: ParameterCollection) -> tuple[str, ParsingResults]:
env_file_parsing_results = dict()
for key, value in dotenv_values().items():
key = key.split(".")
Expand All @@ -660,15 +621,13 @@ def get_env_file_variables(parsing_results: ParsingResults, parameter_collection
return (".env file", env_file_parsing_results)


def get_config_file_variables(config_file_path: str, parsing_results: ParsingResults,
parameter_collection: ParameterCollection) -> tuple[str, ParsingResults]:
def get_config_file_variables(config_file_path: str, parsing_results: ParsingResults, parameter_collection: ParameterCollection) -> tuple[str, ParsingResults]:
with open(config_file_path, "r") as config_file:
config_file_parsing_results = json.load(config_file)
return (f"config file at '{config_file_path}'", config_file_parsing_results)


def filter_secret_values(parsing_results: ParsingResults, parameter_collection: ParameterCollection,
basename: Optional[list[str]] = None) -> ParsingResults:
def filter_secret_values(parsing_results: ParsingResults, parameter_collection: ParameterCollection, basename: Optional[list[str]] = None) -> ParsingResults:
if basename is None:
basename = []

Expand All @@ -681,8 +640,7 @@ def filter_secret_values(parsing_results: ParsingResults, parameter_collection:
parsing_results[key] = "<secret>"


def parse_args(program: str, command: list[str], direct_args: list[str], parseable: Parseable[C],
parse_env_file: bool = True, parse_environment: bool = True) -> tuple[C, ParsingResults]:
def parse_args(program: str, command: list[str], direct_args: list[str], parseable: Parseable[C], parse_env_file: bool = True, parse_environment: bool = True) -> tuple[C, ParsingResults]:
parameter_collection = parseable._parameter_collection

parsing_results: ParsingResults = dict()
Expand Down
Loading