Fastfetch: refactor command line option parsing code

1. improve performance
2. remove `-c`
3. rename `--recache` to `--logo-recache`, and remove `-r`
This commit is contained in:
李通洲
2023-08-17 16:00:24 +08:00
parent c888254f70
commit e5e4c8bf88
13 changed files with 419 additions and 262 deletions
+11
View File
@@ -0,0 +1,11 @@
#pragma once
#ifndef FF_INCLUDED_common_commandoption
#define FF_INCLUDED_common_commandoption
#include "fastfetch.h"
bool ffParseModuleCommand(const char* type);
bool ffParseModuleOptions(const char* key, const char* value);
#endif