Login  Register

Command Line Parsing

Posted by flywire on Nov 25, 2019; 10:16pm
URL: https://forum.librecad.org/Command-Line-Parsing-tp5718014.html

I assume the command line will develop into scripting so it is worth a bit of consideration.

Why the Command Line kinda sucks:

* pasting multiple lines is a separate option to typing - pasting and typing should be the same, a single command should be a multiple of one (ie no special case) supporting various eol

* comma between parameters - a space would be easier and a tab a good option

* multiple commands can be separated with a semicolon - whatever, seems redundant as a new command should start after all parameters for the previous command

* parametric scripts aren't supported - Pseudo Scripting With Excel workaround would be even better with openpyxl under python

* no comment command - a file full of commands needs comments