From 6f7532cc7aa1dcfc2920d7b37b4ce2e07869c451 Mon Sep 17 00:00:00 2001 From: Folkert Kevelam Date: Tue, 15 Jul 2025 22:40:52 +0200 Subject: [PATCH] Add things to README.md --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/README.md b/README.md index e69de29..41f92d3 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,44 @@ +# Argument_Parser + +A Command-Line interface for Ada, heavily inspired by the advice +from [clig.dev](www.clig.dev). + +## Build + +The library can be easily build with `gprbuild`: + +```sh +gprbuild -Pargument_parser +``` + +The static library is then available under `lib`. + +## Usage + +```Ada +with Argument_Parser; use Argument_Parser; + +procedure Main is + + Parser : Argument_Parser; + +begin + + Parser.Add_Positional ( + Integer_Option, + "Index", + "The Index of the input"); + + Parser.Add_Positional ( + String_Option, + "Name", + "Name of the project"); + + Parser.Add_Option ( + Boolean_Option (False), + + ); + +end Main; + +```