removed empty command, must specify build now

This commit is contained in:
isanae
2020-05-16 18:00:31 -04:00
parent 2246d52197
commit 0700140015
3 changed files with 5 additions and 19 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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;
}