diff options
author | tastytea | 2020-01-11 14:44:14 +0100 |
---|---|---|
committer | tastytea | 2020-01-11 14:44:14 +0100 |
commit | 7eda3ae9e1709e84064a499f0d5d0fed67be6215 (patch) | |
tree | 3c0e098e0f7c5356f703be9e4bed0d71169e43a4 | |
parent | 45e22b5d1ea1c40f44ed89da8387853c2615beef (diff) | |
download | mastodonpp-7eda3ae9e1709e84064a499f0d5d0fed67be6215.tar mastodonpp-7eda3ae9e1709e84064a499f0d5d0fed67be6215.tar.gz mastodonpp-7eda3ae9e1709e84064a499f0d5d0fed67be6215.zip |
Fix argument check in example03.
-rw-r--r-- | examples/example03_post_status.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example03_post_status.cpp b/examples/example03_post_status.cpp index f2e473a..62fc919 100644 --- a/examples/example03_post_status.cpp +++ b/examples/example03_post_status.cpp @@ -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; |