Fix argument check in example03.
This commit is contained in:
parent
45e22b5d1e
commit
7eda3ae9e1
|
@ -33,7 +33,7 @@ using std::vector;
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
const vector<string_view> args(argv, argv + argc);
|
const vector<string_view> args(argv, argv + argc);
|
||||||
if (args.size() <= 1)
|
if (args.size() <= 2)
|
||||||
{
|
{
|
||||||
cerr << "Usage: " << args[0] << " <instance hostname> <access token>\n";
|
cerr << "Usage: " << args[0] << " <instance hostname> <access token>\n";
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user