Skip to content

Commit

Permalink
Wrapper of Value for simplified command line package.
Browse files Browse the repository at this point in the history
  • Loading branch information
godunko committed Jan 22, 2024
1 parent f416495 commit 1bda7c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/os/implementation/vss-command_line.adb
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,17 @@ package body VSS.Command_Line is
-- Values --
------------

function Values
(Option : Multivalue_Positional_Option'Class)
return VSS.String_Vectors.Virtual_String_Vector is
begin
return Parser.Values (Option);
end Values;

------------
-- Values --
------------

function Values
(Option : Name_Value_Option'Class) return Name_Value_Vectors.Vector is
begin
Expand Down
5 changes: 5 additions & 0 deletions source/os/vss-command_line.ads
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ package VSS.Command_Line is
return VSS.String_Vectors.Virtual_String_Vector;
-- Return all values of the given option specified in the command line.

function Values
(Option : Multivalue_Positional_Option'Class)
return VSS.String_Vectors.Virtual_String_Vector;
-- Return all values of the given option specified in the command line.

function Values
(Option : Name_Value_Option'Class) return Name_Value_Vectors.Vector;
-- Return all name=value pairs of the given option specified in the
Expand Down

0 comments on commit 1bda7c0

Please sign in to comment.