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
750f6052
Commit
750f6052
authored
Dec 03, 2020
by
Pierre Aubert
Browse files
Add default class name
parent
73070b33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/main.cpp
src/main.cpp
+2
-1
No files found.
src/main.cpp
View file @
750f6052
...
...
@@ -26,7 +26,8 @@ OptionParser createOptionParser(){
parser
.
setExampleShortOption
(
"phoenix_filegenerator class -n some_source"
);
parser
.
addMode
(
"class"
);
parser
.
addOption
(
"name"
,
"n"
,
OptionType
::
FILENAME
,
true
,
"base name of the file to be created"
);
std
::
string
defaultClassName
(
"Shadok"
);
parser
.
addOption
(
"name"
,
"n"
,
OptionType
::
FILENAME
,
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)"
);
...
...
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