diff --git a/CHANGELOG.md b/CHANGELOG.md index 878198f..c1bbe78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning]. ## [Unreleased] +## [0.0.32] - 2025-11-12 + +### Fixed in 0.0.32 + +- `add_record` using a `record_id` with multiple consecutive spaces added the record but with only 1 space in `record_id` + ## [0.0.31] - 2025-09-11 ### Fixed in 0.0.31 diff --git a/sz_tools/sz_command b/sz_tools/sz_command index f784eef..6b4adf3 100755 --- a/sz_tools/sz_command +++ b/sz_tools/sz_command @@ -80,7 +80,6 @@ CMDS_NOT_TO_SET_LAST_COMMAND = [ "response_to_file", ] - CONFIG_SETTINGS: Dict[str, Dict[str, Any]] = { "format_json": { "values": ["off", "on"], @@ -286,7 +285,7 @@ class SzCmdShell(cmd.Cmd): self.read_config() # Create config file if one doesn't exist and write it again if it exists. read_config() merges DEFAULT_CONFIG - # with the config file incase new config settings are added to DEFAULT_CONFIG in a new release of the tool + # with the config file in case new config settings are added to DEFAULT_CONFIG in a new release of the tool self.write_config() # Acquire Senzing engines and information @@ -2086,10 +2085,8 @@ class SzCmdShell(cmd.Cmd): def remove_per_cmd_settings(self, cmd_line: str) -> str: """Remove any settings from a command""" - cmd_list = [c for c in cmd_line.split() if c.lower() not in PER_CMD_SETTINGS] - cmd_line_cleaned = " ".join(cmd_list) - - return cmd_line_cleaned + cmd_list_clean = [c for c in self.parse(cmd_line) if c.lower() not in PER_CMD_SETTINGS] + return shlex.join(cmd_list_clean) def parse(self, argument_string: str) -> List[str]: """Parses command arguments into a list of argument strings"""