Commit 1735a812 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Use appropriate option type for bash completion

parent b9cdbe91
Pipeline #109598 passed with stages
in 16 minutes and 41 seconds
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment