aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2021-06-13 18:45:41 +0200
committerJan200101 <sentrycraft123@gmail.com>2021-06-13 18:45:41 +0200
commit2352079d0c54955f69b9070fc022c5f099906805 (patch)
tree53cadfa7d7ae2545ae5c6428c1f4e694203f2e57 /src/main.c
parente83d0567b736bb86515ebd651eb9e2a921dcaab3 (diff)
downloadpolecat-2352079d0c54955f69b9070fc022c5f099906805.tar.gz
polecat-2352079d0c54955f69b9070fc022c5f099906805.zip
rework command group logic to work linear, replace return with EXIT_*
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index d865ecf..653a1b3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -57,7 +57,7 @@ COMMAND_GROUP(main)
atexit(free_nargv);
}
#endif
- COMMAND_GROUP_BODY(main, COMMANDS, FLAGS)
+ COMMAND_GROUP_BODY(main)
}
COMMAND(main, env)
@@ -74,14 +74,14 @@ COMMAND(main, env)
printf("data dir\t\t%s\n", buffer);
- return 0;
+ return EXIT_SUCCESS;
}
COMMAND(main, version)
{
puts(VERSION);
- return 0;
+ return EXIT_SUCCESS;
}
COMMAND_HELP(main, "")