summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-19 14:58:52 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-19 14:58:52 -0500
commitfab2f2a4b616b9bd763b154605685733c74d7321 (patch)
tree2df901a20450049dd0806281a36257f25d354a11 /dev
parentfb72ff4e8a67d67cbc3fa3fed41d9968c1b244c4 (diff)
fix: standardize switch across NeKernel components.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev')
-rw-r--r--dev/cli/AppMain.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/cli/AppMain.cc b/dev/cli/AppMain.cc
index 53cbdf3..afd912e 100644
--- a/dev/cli/AppMain.cc
+++ b/dev/cli/AppMain.cc
@@ -16,16 +16,16 @@ int main(int argc, char** argv) {
for (size_t index = 1; index < argc; ++index) {
std::string index_path = argv[index];
- if (index_path == "-v" || index_path == "--version") {
+ if (index_path == "-v" || index_path == "-version") {
NeBuild::Logger::info() << "NeKernel Build.\n";
NeBuild::Logger::info()
<< "Bugs or issues? Check out: https://github.com/nekernel-org/nebuild/issues\n";
return EXIT_SUCCESS;
- } else if (index_path == "--dry-run" || index_path == "-n") {
+ } else if (index_path == "-dry-run" || index_path == "-n") {
kDryRun = true;
continue;
- } else if (index_path == "-h" || index_path == "--help") {
+ } else if (index_path == "-h" || index_path == "-help") {
NeBuild::Logger::info() << "usage: nebuild <file>\n";
return EXIT_SUCCESS;