mirror of
https://github.com/AGWA/git-crypt.git
synced 2025-12-18 02:09:13 -08:00
Remove stubs for profile support
Multiple key support provides the functionality I was planning to provide with profiles.
This commit is contained in:
@@ -94,18 +94,11 @@ try {
|
||||
/*
|
||||
* Parse command line arguments
|
||||
*/
|
||||
const char* profile = 0;
|
||||
int arg_index = 1;
|
||||
while (arg_index < argc && argv[arg_index][0] == '-') {
|
||||
if (std::strcmp(argv[arg_index], "--help") == 0) {
|
||||
print_usage(std::clog);
|
||||
return 0;
|
||||
} else if (std::strncmp(argv[arg_index], "--profile=", 10) == 0) {
|
||||
profile = argv[arg_index] + 10;
|
||||
++arg_index;
|
||||
} else if (std::strcmp(argv[arg_index], "-p") == 0 && arg_index + 1 < argc) {
|
||||
profile = argv[arg_index + 1];
|
||||
arg_index += 2;
|
||||
} else if (std::strcmp(argv[arg_index], "--") == 0) {
|
||||
++arg_index;
|
||||
break;
|
||||
@@ -116,8 +109,6 @@ try {
|
||||
}
|
||||
}
|
||||
|
||||
(void)(profile); // TODO: profile support
|
||||
|
||||
argc -= arg_index;
|
||||
argv += arg_index;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user