-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants_cli.h
More file actions
93 lines (70 loc) · 2.86 KB
/
constants_cli.h
File metadata and controls
93 lines (70 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
Copyright (C) 2009-2014 jakago
Copyright (C) 2018-2026 CSReviser Team
This file is part of CaptureStream2, the recorder to support HLS for
NHK radio language courses.
CaptureStream2 is a modified version of CaptureStream, originally
developed by jakago.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/gpl-2.0.html>.
*/
// constants_cli.h
#pragma once
#include "constants_core.h"
namespace Constants {
struct CliOption {
const char* name;
bool requiresValue;
const char* keyOption; // GUI、Flagの キーと一致
const char* description;
const char* group; // 追加
};
// --- 外部参照の宣言 ---
extern const CliOption OPTION_TABLE[];
// --- 個数取得関数の宣言 ---
int getOptionTableCount();
struct FlagControl {
const char* onKey; // 例: "thumbnail"
const char* offKey; // 例: "thumbnail-off"
const char* target; // 最終的に m_flags で使うキー: "thumbnail"
};
// --- 外部参照の宣言 ---
extern const FlagControl CLI_FLAG_CONTROLS[];
// --- 個数取得関数の宣言 ---
int getCLI_FLAG_CONTROLSCount();
extern const char* HELP_USAGE;
extern const char* HELP_HEADER;
extern const char* HELP_PROGRAMID;
} // namespace Constants
/*
#pragma once
#include "constants_core.h"
namespace Constants {
struct CliOption {
const char* name;
bool requiresValue;
const char* keyOption; // GUI、Flagの キーと一致
const char* description;
};
inline const CliOption OPTION_TABLE[] = {
{ "-nogui", false, KEY_NOGUI, "GUI を起動せずに実行します" },
{ "-t", true, KEY_CUSTOMIZED_TITLE1, "タイトルタグ形式を指定します" },
{ "-f", true, KEY_CUSTOMIZED_FILENAME1,"ファイル名形式を指定します" },
{ "-o", true, KEY_SaveFolder, "保存フォルダのフルパスを指定します" },
{ "-e", true, KEY_AudioExtension, "拡張子を指定します" },
{ "-z", false, KEY_LAST_WEEK, "前週の動作を行います" },
{ "-b", false, KEY_BOTH_WEEKS, "前週と当週の両方を実行します" },
{ "-s", false, KEY_KOZA_SEPARATION, "応用編分離を有効にします" },
};
inline constexpr int OPTION_TABLE_COUNT = std::size(OPTION_TABLE);
// sizeof(OPTION_TABLE) / sizeof(OPTION_TABLE[0]);
}
*/