Implement stronger type handling for command arguments #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
title: Implement Stronger Type Handling for Command Arguments
description: Enhance type conversion and validation for command-line arguments across the application.
current_situation: Command arguments (
args : Array(String)) are passed and manipulated as raw strings. Type conversion is minimal or occurs implicitly.expected_outcome:
to_i,to_f, specific enums) immediately after parsing.technical_details:
add_optionsmethods in allCliclasses (Build, Scaffold, Plan, Write, Container).opts.onblocks to their target types when settingConfigproperties.if value.to_i?before conversion) where user input could lead to type errors.b313533 Implement stronger type handling for command argumentsto Implement stronger type handling for command arguments