Skip to content

DTSW-7670-Make-Duckietown-Shell-commands-that-run-other-commands-more-robust#129

Merged
liammcalpineduckietown merged 1 commit intomainfrom
DTSW-7670-Make-Duckietown-Shell-commands-that-run-other-commands-more-robust
Apr 8, 2026
Merged

DTSW-7670-Make-Duckietown-Shell-commands-that-run-other-commands-more-robust#129
liammcalpineduckietown merged 1 commit intomainfrom
DTSW-7670-Make-Duckietown-Shell-commands-that-run-other-commands-more-robust

Conversation

@liammcalpineduckietown
Copy link
Copy Markdown
Contributor

@liammcalpineduckietown liammcalpineduckietown commented Mar 9, 2026

This pull request introduces a new utility method to the command handling logic in lib/dt_shell/commands/commands.py. The main change is the addition of a class method to resolve CLI arguments consistently across both direct and nested command invocations, improving reliability and maintainability of argument parsing.

Enhancements to argument parsing:

  • Added the _resolve_parsed class method to ensure consistent resolution of CLI arguments for both direct and nested command calls, overlaying parent command values onto defaults and using parse_known_args for flexible argument forwarding.

@liammcalpineduckietown liammcalpineduckietown merged commit 159cd5e into main Apr 8, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants