Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixFileGenerator
Commits
1735a812
Commit
1735a812
authored
Mar 14, 2021
by
Pierre Aubert
Browse files
Use appropriate option type for bash completion
parent
b9cdbe91
Pipeline
#109598
passed with stages
in 16 minutes and 41 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main.cpp
src/main.cpp
+2
-2
No files found.
src/main.cpp
View file @
1735a812
...
...
@@ -30,12 +30,12 @@ OptionParser createOptionParser(){
parser
.
addOption
(
"name"
,
"n"
,
defaultClassName
,
"base name of the file to be created"
);
std
::
string
templateDef
(
""
);
parser
.
addOption
(
"template"
,
"t"
,
templateDef
,
"template definition of the class (ex: 'typename T' or 'typename T, typename U', etc)"
);
parser
.
addOption
(
"config"
,
"c"
,
templateDef
,
"Configuration file to create a class (*.pdata)"
);
parser
.
addOption
(
"config"
,
"c"
,
OptionType
::
FILENAME
,
false
,
"Configuration file to create a class (*.pdata)"
);
parser
.
addOption
(
"datastream"
,
"s"
,
OptionType
::
NONE
,
false
,
"Enable DataStream use to save/load generated class automatically"
);
parser
.
closeMode
();
parser
.
addMode
(
"source"
);
parser
.
addOption
(
"name"
,
"n"
,
OptionType
::
FILENAME
,
true
,
"base name of the file to be created"
);
parser
.
addOption
(
"name"
,
"n"
,
OptionType
::
STRING
,
true
,
"base name of the file to be created"
);
parser
.
closeMode
();
return
parser
;
}
...
...
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