mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
removed empty command, must specify build now
This commit is contained in:
+1
-1
@@ -37,4 +37,4 @@ if %errorlevel% neq 0 (
|
||||
)
|
||||
|
||||
copy "build\Release\x64\mob.exe" .\mob.exe > NUL
|
||||
echo run `mob -d path` to start building
|
||||
echo run `mob -d prefix/path build` to start building
|
||||
|
||||
+1
-1
@@ -194,7 +194,7 @@ int help_command::do_run()
|
||||
" build builds tasks\n"
|
||||
" release creates a release or a devbuild"
|
||||
"\n\n"
|
||||
"Invoking `mob` without a command builds everything. Do "
|
||||
"Invoking `mob -d some/prefix build` builds everything. Do \n"
|
||||
"`mob build <task name>...` to build specific tasks. See\n"
|
||||
"`mob command --help` for more information about a command.");
|
||||
|
||||
|
||||
+3
-17
@@ -57,23 +57,9 @@ std::shared_ptr<command> handle_command_line(const std::vector<std::string>& arg
|
||||
return std::move(c);
|
||||
}
|
||||
|
||||
// another way parsing can fail is if no commands are given, like just
|
||||
// running `mob` as-is; clipp doesn't really have a ways of setting
|
||||
// a default command to use, to the arguments can be reparsed with
|
||||
// only the common options
|
||||
cli = command::common_options_group();
|
||||
pr = clipp::parse(args, cli);
|
||||
|
||||
if (!pr)
|
||||
{
|
||||
// bad command line
|
||||
help->force_exit_code(1);
|
||||
return help;
|
||||
}
|
||||
|
||||
// if this parsing works, it means the user invoked `mob` without a
|
||||
// command; default to `build`
|
||||
build->force_pick();
|
||||
// bad command line
|
||||
help->force_exit_code(1);
|
||||
return help;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user