ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
general.c
Go to the documentation of this file.
1
14
15// ============================================================================
16// GENERAL CATEGORY - General-purpose options
17// ============================================================================
19 // GENERAL GROUP (binary-level + all modes)
20 {"help",
21 'h',
23 0,
24 NULL,
25 0,
26 "Show this help message and exit.",
27 "GENERAL",
28 NULL,
29 false,
30 NULL,
31 NULL,
32 NULL,
33 false,
34 false,
37 {0},
38 NULL},
39 {"version",
40 'v',
42 0,
43 NULL,
44 0,
45 "Show version information and exit.",
46 "GENERAL",
47 NULL,
48 false,
49 NULL,
50 NULL,
51 NULL,
52 false,
53 false,
55 {0},
56 NULL},
57 {"splash-screen",
58 '\0',
60 offsetof(options_t, splash_screen),
61 &default_splash_value,
62 sizeof(bool),
63 "Enable or disable splash screen with ASCII art. Overrides CLAUDECODE environment variable.",
64 "GENERAL",
65 NULL,
66 false,
67 "ASCII_CHAT_SPLASH_SCREEN",
68 NULL,
69 NULL,
70 false,
71 true, // optional_arg: allows --splash-screen to toggle or --splash-screen=true/false
73 {0},
74 NULL},
75 {"status-screen",
76 '\0',
78 offsetof(options_t, status_screen),
79 &default_status_screen_value,
80 sizeof(bool),
81 "Enable or disable live status screen display. Overrides non-interactive terminal checks.",
82 "GENERAL",
83 NULL,
84 false,
85 "ASCII_CHAT_STATUS_SCREEN",
86 NULL,
87 NULL,
88 false,
89 true, // optional_arg: allows --status-screen to toggle or --status-screen=true/false
91 {0},
92 NULL},
93 {"keepawake",
94 '\0',
96 offsetof(options_t, enable_keepawake),
97 &default_enable_keepawake_value,
98 sizeof(bool),
99 "Explicitly enable system sleep prevention (keepawake mode).",
100 "GENERAL",
101 NULL,
102 false,
103 "ASCII_CHAT_KEEPAWAKE",
104 NULL,
105 NULL,
106 false,
107 false,
109 {0},
110 NULL},
111 {"no-keepawake",
112 '\0',
114 offsetof(options_t, disable_keepawake),
115 &default_disable_keepawake_value,
116 sizeof(bool),
117 "Disable system sleep prevention (allow OS to sleep).",
118 "GENERAL",
119 NULL,
120 false,
121 "ASCII_CHAT_NO_KEEPAWAKE",
122 NULL,
123 NULL,
124 false,
125 false,
127 {0},
128 NULL},
129 {"check-update",
130 '\0',
132 0,
133 NULL,
134 0,
135 "Check for updates from GitHub releases and exit.",
136 "GENERAL",
137 NULL,
138 false,
139 NULL,
140 NULL,
141 NULL,
142 false,
143 false,
145 {0},
146 NULL},
147 {"no-check-update",
148 '\0',
150 offsetof(options_t, no_check_update),
151 &default_no_check_update_value,
152 sizeof(bool),
153 "Disable automatic update checks at startup.",
154 "GENERAL",
155 NULL,
156 false,
157 "ASCII_CHAT_NO_CHECK_UPDATE",
158 NULL,
159 NULL,
160 false,
161 false,
163 {0},
164 NULL},
165
@ OPTION_TYPE_ACTION
Action that executes and may exit (–list-webcams, etc.)
Definition builder.h:167
@ OPTION_TYPE_BOOL
Boolean flag (–flag, no value)
Definition builder.h:162
const registry_entry_t g_general_entries[]
Definition general.c:18
@ OPTION_MODE_ALL
All modes + binary.
@ OPTION_MODE_BINARY
Binary-level options (parsed before mode detection)
@ OPTION_MODE_CLIENT
Client mode (bit 1)
@ OPTION_MODE_DISCOVERY
Discovery mode (bit 4)
@ OPTION_MODE_SERVER
Server mode (bit 0)
@ OPTION_MODE_MIRROR
Mirror mode (bit 2)
@ OPTION_MODE_DISCOVERY_SVC
Discovery server mode (bit 3)
Shared structures and macros for registry implementation.
#define REGISTRY_TERMINATOR()
Initialize a terminator entry (sentinel value for array end) Uses designated initializers to properly...
#define bool
Definition stdbool.h:61
Consolidated options structure.
Registry entry - stores option definition with mode bitmask and metadata.