Fix argument check in example03.

This commit is contained in:
tastytea 2020-01-11 14:44:14 +01:00
parent 45e22b5d1e
commit 7eda3ae9e1
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -33,7 +33,7 @@ using std::vector;
int main(int argc, char *argv[])
{
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";
return 1;