Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions include/seqan3/argument_parser/detail/version_check.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class version_checker
// build up command for server call
std::string command = program + // no user defined input
" " + out_file.string() + " "
+ std::string{"http://seqan-update.informatik.uni-tuebingen.de/check/SeqAn3_"} +
+ std::string{"https://seqan-update.cs.uni-tuebingen.de/check/SeqAn3_"} +
#ifdef __linux
"Linux" +
#elif __APPLE__
Expand Down Expand Up @@ -345,10 +345,10 @@ class version_checker
This app can look for updates automatically in the background,
do you want to do that?

[a] Always perform version checks for this app (the default).
[a] Always perform version checks for this app.
[n] Never perform version checks for this app.
[y] Yes, perform a version check now, and ask again tomorrow.
[s] Skip the version check now, but ask again tomorrow.
[s] Skip the version check now, but ask again tomorrow (the default).

Please enter one of [a, n, y, s] and press [RETURN].

Expand All @@ -360,17 +360,18 @@ class version_checker
)";
std::string line{};
std::getline(std::cin, line);
line.resize(1); // ignore everything but the first char or resizes the empty string to the default
line.resize(1, 's'); // ignore everything but the first char or resizes the empty string to the default

switch (line[0])
{
case 'y':
{
return true;
}
case 's':
case 'a':
{
return false;
write_cookie(std::string{"ALWAYS"}); // overwrite cookie
return true;
}
case 'n':
{
Expand All @@ -379,8 +380,7 @@ class version_checker
}
default:
{
write_cookie(std::string{"ALWAYS"}); // overwrite cookie
return true;
return false;
}
}
}
Expand Down
Loading