Autor Beitrag
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 13.08.04 22:06 
Ich bin grad am Schreiben einer Komponente zur automatischen Auswertung von Befehlszeilen (Windows- und Linux-Style) und wollte mal anfragen, welche Syntax\Formen Die Befehlszeilen haben.

Für Windows sind mir diese bekannt:

PROGRAM /option[{:|=}]wert param ...

wobei [] optional und {|} exklusiv bedeutet

Bei Linux kenn ich auf Anhieb die folgenden:

PROGRAM -switch -v1 param ...
PROGRAM -s -w -i -t -c -h -v1
PROGRAM --help

Welche wichtigen Syntax-Varianten gibt's noch?
Welche Features sollte die Komponente noch haben?

Zur Zeit geplant:
-Datentypen und Werte-Prüfung von Parametern (Liste derzeit definierter Datentyp-Definitionen umfasst ca. eine Bildschirmseite)
-Prüfung von Datei-, Verzeichnis-, Laufwerks-, URL-, Computer-, Domain- und Arbeitsgruppenangaben
-Einlesen von Datums-\Zeit-Werten sowohl als hh:nn:ss als auch 7h29min13s
-Automatisches Generieren eines Hilfe-Bildschirms anhand der Syntax-Definition (Hilfe-Texte in Parameterangaben eingebettet)
-Automatisches Parsen der Programmparameter
-Parsen beliebiger anderer Befehlszeilen möglich

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Sa 14.08.04 06:46 
Hallo!

Du kannst dir ja mal meine Open Source Unit anschauen: sdParams.pas Leichteres Arbeiten mit übergebenden Parameter. Nur so zur Info :-)

Gruß
Tino
BenBE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 14.08.04 12:39 
Danke, werd's mir mal angucken.

Mal sehen, aber ich meinte speziell, ob's noch andere Formen für die Syntax außer den beiden unter Windows und Linux vorherrschenden gibt?

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.