From 0868a1719c82d98baf5d39a8ea9d06c99b7161fe Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Tue, 7 Apr 2026 00:02:35 +0300 Subject: [PATCH] feat: add RECTANG/REC and POLYGON/POL command aliases Standard AutoCAD aliases now dispatch to the existing RECT and POLY commands respectively, so users familiar with AutoCAD naming find them without modification. Co-Authored-By: Claude Sonnet 4.6 --- src/app/commands.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/commands.rs b/src/app/commands.rs index 3b3aa0c09..e8c54404c 100644 --- a/src/app/commands.rs +++ b/src/app/commands.rs @@ -677,7 +677,7 @@ impl H7CAD { self.tabs[i].active_cmd = Some(Box::new(new_cmd)); } - "RECT" => { + "RECT"|"RECTANG"|"REC" => { use crate::modules::home::draw::shapes::RectCommand; let new_cmd = RectCommand::new(); self.command_line.push_info(&new_cmd.prompt()); @@ -695,7 +695,7 @@ impl H7CAD { self.command_line.push_info(&new_cmd.prompt()); self.tabs[i].active_cmd = Some(Box::new(new_cmd)); } - "POLY" => { + "POLY"|"POLYGON"|"POL" => { use crate::modules::home::draw::shapes::PolyCommand; let new_cmd = PolyCommand::new(); self.command_line.push_info(&new_cmd.prompt()); @@ -1537,7 +1537,7 @@ impl H7CAD { "HELP"|"?" => { self.command_line.push_output( - "Draw: LINE CIRCLE ARC PLINE RECT POLY POINT ELLIPSE SPLINE RAY XLINE HATCH DONUT REVCLOUD WIPEOUT MLINE ATTDEF | \ + "Draw: LINE CIRCLE ARC PLINE RECTANG(RECT) POLYGON(POLY) POINT ELLIPSE SPLINE RAY XLINE HATCH DONUT REVCLOUD WIPEOUT MLINE ATTDEF | \ Modify: MOVE COPY ROTATE SCALE MIRROR ERASE OFFSET EXTEND FILLET CHAMFER STRETCH EXPLODE TRIM BREAK JOIN LENGTHEN ALIGN PEDIT | \ Array: ARRAY ARRAYRECT ARRAYPOLAR ARRAYPATH | \ Text: TEXT MTEXT LEADER MLEADER | \