Update argument docs and error messages

pull/242/head
Jan Schulz 2018-12-03 17:49:00 +01:00 committed by Jan Schulz
parent f4b6435fcc
commit 966df191ff
1 changed files with 3 additions and 3 deletions

View File

@ -111,8 +111,8 @@ int Main( int argc, char **argv )
( "help,h", "Produce help message" )
( "version,v", "Display Grive version" )
( "auth,a", "Request authorization token" )
( "id,i", po::value<std::string>(), "Authentication ID (only used with 'auth')")
( "secret,e", po::value<std::string>(), "Authentication secret (only used with 'auth')")
( "id,i", po::value<std::string>(), "Authentication ID (only used with '-a')")
( "secret,e", po::value<std::string>(), "Authentication secret (only used with '-a')")
( "path,p", po::value<std::string>(), "Path to working copy root")
( "dir,s", po::value<std::string>(), "Single subdirectory to sync")
( "verbose,V", "Verbose mode. Enable more messages than normal.")
@ -242,7 +242,7 @@ int Main( int argc, char **argv )
if( vm.count( "id" ) || vm.count( "secret" ))
{
Log(
"'id' and 'secret' are only valid when grive is run with the \"-a\" option to (re)authenticate",
"'--id' and '--secret' are only valid when grive is run with the \"-a\" option to (re)authenticate",
log::critical ) ;
return -1;