update print usage

This commit is contained in:
Nikola Petrov 2023-08-13 22:09:08 +02:00
parent 5bbcb51b55
commit 07cabde693
2 changed files with 11 additions and 4 deletions

View File

@ -77,7 +77,15 @@ bool load_buffer_from_file(Buffer* buffer)
void print_usage() void print_usage()
{ {
printf_s("Usage:\n"); printf_s(" Usage:\n\n");
printf_s("password_manager.exe <label>\n"); printf_s(" password_manager.exe [flags]\n\n");
printf_s("password_manager.exe -g <label>\n"); printf_s(" Flags:\n\n");
printf_s(" -h\t\t\tprint this message WIP\n");
printf_s(" <label>\t\tget password of this label\n");
printf_s(" -g <label>\t\tgenerate or update password of this label WIP [update]\n");
printf_s(" -l\t\t\tlist all labels WIP\n");
printf_s(" -d <label>\t\tdelete password of this label WIP \n");
printf_s(" -c\t\t\tclear all passwords WIP\n");
printf_s(" -p\t\t\tprint all passwords WIP\n");
} }

View File

@ -67,7 +67,6 @@ int main(int argc, char** argv)
return 1; return 1;
} }
} }
printf_s("Password: %s\n", pass.password);
printf_s("Password copied to clipboard\n"); printf_s("Password copied to clipboard\n");
put_data_on_clipboard(pass.password); put_data_on_clipboard(pass.password);
} }