pmt: reformat code and improve

This commit is contained in:
2025-08-13 09:54:11 +03:00
parent d74f385a68
commit 0bc5f70294
14 changed files with 127 additions and 77 deletions

View File

@@ -3902,9 +3902,9 @@ get_default_flag_values(const std::string &str);
/// Get a vector of short names, one of long names, and a single name
CLI11_INLINE
std::tuple<std::vector<std::string>, std::vector<std::string>, std::string>
get_names(const std::vector<std::string> &input,
bool allow_non_standard = false);
std::tuple<std::vector<std::string>, std::vector<std::string>, std::string>
get_names(const std::vector<std::string> &input,
bool allow_non_standard = false);
} // namespace detail
@@ -3995,8 +3995,8 @@ get_default_flag_values(const std::string &str) {
}
CLI11_INLINE
std::tuple<std::vector<std::string>, std::vector<std::string>, std::string>
get_names(const std::vector<std::string> &input, bool allow_non_standard) {
std::tuple<std::vector<std::string>, std::vector<std::string>, std::string>
get_names(const std::vector<std::string> &input, bool allow_non_standard) {
std::vector<std::string> short_names;
std::vector<std::string> long_names;

View File

@@ -17,9 +17,9 @@
#ifndef LIBPMT_LIB_HPP
#define LIBPMT_LIB_HPP
#include <CLI/CLI11.hpp>
#include <libhelper/lib.hpp>
#include <libpartition_map/lib.hpp>
#include <CLI/CLI11.hpp>
#include <memory>
#include <string>
#include <vector>