mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
[tm] Allow to convery more than one model.
This commit is contained in:
parent
984681943d
commit
6f4faa4ff2
1 changed files with 2 additions and 1 deletions
|
|
@ -84,10 +84,11 @@ void convert(const path &fn)
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
cl::opt<path> p(cl::Positional, cl::desc("<file.tm>"), cl::Required);
|
||||
cl::list<path> list(cl::Positional, cl::desc("<files.tm or dirs>"), cl::Required, cl::OneOrMore);
|
||||
|
||||
cl::ParseCommandLineOptions(argc, argv);
|
||||
|
||||
for (auto &&p : list)
|
||||
if (fs::is_regular_file(p))
|
||||
convert(p);
|
||||
else if (fs::is_directory(p))
|
||||
|
|
|
|||
Loading…
Reference in a new issue