--
-- COMMAND_LINE_HANDLER by Richard Conn, TI Ada Technology Branch
-- 27 Feb 85
--
package Command_Line_Handler is
    --------------------------------------------------------------------------
    -- Abstract   : This package contains routines which return words
    --               from the command line tail (parameters following
    --               the command line verb).  It expects a file to have
    --               been created externally which contains these words,
    --               one word per line.
    --------------------------------------------------------------------------

    No_Command_Line_File : exception;
    No_More_Words : exception;


    procedure Next_Word (Word : out String; Length : out Natural);
    --------------------------------------------------------------------------
    -- Abstract   : NEXT_WORD returns the next word from the command
    --               line tail.  If there are no more words, NO_MORE_WORDS
    --               is raised.  If there is no command line file,
    --               NO_COMMAND_LINE_FILE is raised.
    --------------------------------------------------------------------------
    -- Parameters : WORD           - string containing the next word
    --              LENGTH         - number of chars in next word
    --------------------------------------------------------------------------


    procedure Reset;
    --------------------------------------------------------------------------
    -- Abstract   : If the file containing the command line's words
    --               is open, this file is closed.  The net effect is
    --               that the next invocation of NEXT_WORD will return
    --               the first word of the command line tail.
    --------------------------------------------------------------------------

end Command_Line_Handler;

