Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
UERANSIM
Commits
5bc291b7
Commit
5bc291b7
authored
Feb 13, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Options parser improvement
parent
1adc0599
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
src/utils/options.cpp
src/utils/options.cpp
+0
-5
src/utils/options.hpp
src/utils/options.hpp
+1
-4
No files found.
src/utils/options.cpp
View file @
5bc291b7
...
...
@@ -48,11 +48,6 @@ opt::OptionsResult::OptionsResult(const std::vector<std::string> &args, const op
{
}
opt
::
OptionsResult
::
OptionsResult
(
int
argc
,
char
**
argv
,
const
opt
::
OptionsDescription
&
desc
)
:
OptionsResult
(
argc
,
argv
,
desc
,
false
)
{
}
opt
::
OptionsResult
::
OptionsResult
(
int
argc
,
char
**
argv
,
const
opt
::
OptionsDescription
&
desc
,
bool
freeArgv
)
:
m_description
{
desc
}
{
...
...
src/utils/options.hpp
View file @
5bc291b7
...
...
@@ -87,11 +87,8 @@ class OptionsResult
std
::
unordered_map
<
std
::
string
,
std
::
string
>
m_options
{};
OptionsDescription
m_description
;
private:
OptionsResult
(
int
argc
,
char
**
argv
,
const
OptionsDescription
&
desc
,
bool
freeArgv
);
public:
OptionsResult
(
int
argc
,
char
**
argv
,
const
OptionsDescription
&
desc
);
OptionsResult
(
int
argc
,
char
**
argv
,
const
OptionsDescription
&
desc
,
bool
freeArgv
=
false
);
OptionsResult
(
const
std
::
vector
<
std
::
string
>
&
args
,
const
OptionsDescription
&
desc
);
public:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment