#686/#661 night shift wave 3 completion (memory): -> 100% seedgo. memory.py --help guard (Subcommand_Help ->100). symbolic.py + 6 modules route console.print status/error through cli error()/success()/warning() (Output_Routing ->100). 27 test assertions updated to match the routing (test_symbolic_cli.py, test_symbolic_module.py). Full suite 990 pass / 0 fail (devpulse re-ran the suite; the first agent report wrongly claimed no changes and skipped tests — caught by verify, re-dispatched, now green).
This commit is contained in:
@@ -349,6 +349,14 @@ def main():
|
||||
command = args[0]
|
||||
remaining_args = args[1:] if len(args) > 1 else []
|
||||
|
||||
if remaining_args and remaining_args[0] in ["--help", "-h"]:
|
||||
remaining_args = ["--help"]
|
||||
for module in modules:
|
||||
if module.handle_command(command, remaining_args):
|
||||
return
|
||||
print_help()
|
||||
return
|
||||
|
||||
if route_command(command, remaining_args, modules):
|
||||
return # Module handled it successfully
|
||||
else:
|
||||
@@ -367,5 +375,5 @@ if __name__ == "__main__":
|
||||
sys.exit(0)
|
||||
except Exception as e:
|
||||
logger.error(f"[memory] Entry point error: {e}", exc_info=True)
|
||||
console.print(f"\nError: {e}")
|
||||
error(str(e))
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user