diff --git a/testApp/utils/showauth.cpp b/testApp/utils/showauth.cpp index e82d5f8..a537565 100644 --- a/testApp/utils/showauth.cpp +++ b/testApp/utils/showauth.cpp @@ -22,10 +22,13 @@ int main(int argc, char *argv[]) throw std::runtime_error("Unable to determine username"); name[name.size()-1] = '\0'; - std::cout<<"User: "<<(&name[0])<<"\n"; + + const char *user = argc<=1 ? &name[0] : argv[1]; + + std::cout<<"User: "<