summaryrefslogtreecommitdiffhomepage
path: root/src/perk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/perk.c')
-rw-r--r--src/perk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/perk.c b/src/perk.c
index b8a4ac4..9f40342 100644
--- a/src/perk.c
+++ b/src/perk.c
@@ -64,7 +64,7 @@ static int perk_main(int argc, const char ** argv, const char ** envp)
const char ** unit;
if ((ret = pe_get_driver_ctx(argv,envp,PERK_DRIVER_FLAGS,&dctx)))
- return (ret == PERK_USAGE) ? 0 : 2;
+ return (ret == PERK_USAGE) ? !--argc : 2;
if (dctx->cctx.drvflags & PERK_DRIVER_VERSION)
perk_version(dctx);