summaryrefslogtreecommitdiffhomepage
path: root/tooling/fsck.hefs.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-11 13:04:22 +0200
committerGitHub <noreply@github.com>2025-05-11 13:04:22 +0200
commit57d040e3e6b6d0257c0ba5a914396520b18d9d87 (patch)
tree78be4974d8a24e983034b0962ac5435f1b1d0b53 /tooling/fsck.hefs.cc
parent7690c1976b3127e17370708aef47ba3f18f3b8c2 (diff)
parentf775566da3cf4f8e3ffd4ca6dfe0a3c7776c3b35 (diff)
Merge pull request #30 from nekernel-org/dev0.0.2e2
0.0.2e2
Diffstat (limited to 'tooling/fsck.hefs.cc')
-rw-r--r--tooling/fsck.hefs.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/tooling/fsck.hefs.cc b/tooling/fsck.hefs.cc
index 05cf0660..9d67aa38 100644
--- a/tooling/fsck.hefs.cc
+++ b/tooling/fsck.hefs.cc
@@ -5,11 +5,16 @@
------------------------------------------- */
#include <tooling/hefs.h>
+#include <tooling/mkfs.h>
#include <cstdlib>
int main(int argc, char** argv) {
- (void) (argc);
- (void) (argv);
+ if (argc < 2) {
+ mkfs::console_out() << "fsck: hefs: usage: fsck.hefs i <input_device>" << "\n";
+ return EXIT_FAILURE;
+ }
- return EXIT_FAILURE;
+ (void) argv;
+
+ return EXIT_SUCCESS;
} \ No newline at end of file