Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
c3452fcc
Commit
c3452fcc
authored
Aug 22, 2020
by
LEFEBVREJP email
Browse files
- Removed radixsnd2arl
- Added description to CommandLine
parent
b46f658b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
radixcommand/commandline.cc
View file @
c3452fcc
...
...
@@ -136,6 +136,11 @@ void CommandLine::printParsedLine(std::ostream &out) const
void
CommandLine
::
help
(
std
::
ostream
&
out
)
const
{
// dump commandline example first
// if there is a description, add it up front
if
(
!
mDescription
.
empty
())
{
out
<<
mDescription
<<
std
::
endl
;
}
out
<<
mExecutable
;
for
(
const
auto
&
it
:
mData
)
{
...
...
@@ -287,6 +292,13 @@ bool CommandLine::validate(std::ostream &out) const
return
valid
;
}
const
std
::
string
&
CommandLine
::
description
()
const
{
return
mDescription
;
}
void
CommandLine
::
setDescription
(
const
std
::
string
&
description
)
{
mDescription
=
description
;
}
template
<
>
std
::
string
CommandLine
::
get
(
const
std
::
string
&
name
)
const
{
...
...
radixcommand/commandline.hh
View file @
c3452fcc
...
...
@@ -82,9 +82,13 @@ class RADIX_PUBLIC CommandLine
*/
bool
validate
(
std
::
ostream
&
out
)
const
;
const
std
::
string
&
description
()
const
;
void
setDescription
(
const
std
::
string
&
description
);
private:
int
mArgc
;
char
**
mArgv
;
std
::
string
mDescription
;
std
::
string
mExecutable
;
std
::
vector
<
std
::
string
>
mArgs
;
std
::
vector
<
std
::
pair
<
std
::
string
,
std
::
string
>>
mDeclArgs
;
...
...
radixio/examples/CMakeLists.txt
View file @
c3452fcc
TRIBITS_ADD_EXECUTABLE
(
radixsnd2arl
NOEXEPREFIX
SOURCES
radixsnd2arl
.cc
)
#
TRIBITS_ADD_EXECUTABLE(
fmsscoreex
#
NOEXEPREFIX
#
SOURCES
fmsscoreex
.cc
#
)
radixio/examples/radixsnd2arl.cc
deleted
100644 → 0
View file @
b46f658b
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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