Callback-Based Argument Parser Library
Ada Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests/src
AUTHORS
COPYING
ChangeLog
INSTALL
NEWS
README
cbap-tests.gpr
cbap.gpr
make.sh

README

                        Callback-Based Argument Parser

A small library providing simple callback-based parser for arguments.

This library is meant to be simple to use, and as such doesn't posses any
particularly advanced features (like argument combining) that may result
in complicating its use.

General use:
  CBAP.Register (...);    --
  ...                     -- Register all callbacks you are interested in.
  CBAP.Register (...);    --
  CBAP.Process_Arguments; -- Parse all arguments, calling callbacks if argument
                          -- associated with callback is detected.

See src/cbap.ads file for more detailed description of how library behaves.

------------------------------------------------------------------------------
--                    Copyright © 2015 darkestkhan                          --
------------------------------------------------------------------------------
-- Permission to use, copy, modify, and/or distribute this software for any --
-- purpose with or without fee is hereby granted, provided that the above   --
-- copyright notice and this permission notice appear in all copies.        --
--                                                                          --
-- The software is provided "as is" and the author disclaims all warranties --
-- with regard to this software including all implied warranties of         --
-- merchantability and fitness. In no event shall the author be liable for  --
-- any special, direct, indirect, or consequential damages or any damages   --
-- whatsoever resulting from loss of use, data or profits, whether in an    --
-- action of contract, negligence or other tortious action, arising out of  --
-- or in connection with the use or performance of this software.           --
------------------------------------------------------------------------------