Generic Command Line Parser for Delphi 10.3.x

You know the feeling. You need a specific input from your command line, but you can’t find something lightweight that does the job. Hence, the FDC.CommandLine was born.

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

You can use – / or + as a switch, and use : or = as a flag for parameters.
/option:parameter

You can use single and double quotes to be able to parse parameters that contain spaces and quotes.
/quoteoftheday:”This is a ‘quoted’ parameter”

It also supports lists of parameters.
/inputfiles:(file1.txt , “file with space.txt”)

Take a look at the TestFDCCommandLine.dpr for more examples of how it works.

Continue reading “Generic Command Line Parser for Delphi 10.3.x”

Windows Terminal is Open Source

“Microsoft is launching a new command line app for Windows, dubbed Windows Terminal. It’s designed to be the central location for access to environments like PowerShell, Cmd, and the Windows Subsystem for Linux (WSL). Microsoft is adding multiple tab support alongside theming and customization for developers who want to tweak the Terminal app.”

They’ve also open sourced it.
Source code: https://github.com/microsoft/Terminal

See also: https://devblogs.microsoft.com/commandline/introducing-windows-terminal/

Source: Microsoft unveils Windows Terminal, a new command line app for Windows – The Verge