summaryrefslogtreecommitdiffstats
path: root/utils/nwztools/upgtools/upgtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nwztools/upgtools/upgtool.c')
-rw-r--r--utils/nwztools/upgtools/upgtool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/nwztools/upgtools/upgtool.c b/utils/nwztools/upgtools/upgtool.c
index a1dce84870..7a4d78f0d7 100644
--- a/utils/nwztools/upgtools/upgtool.c
+++ b/utils/nwztools/upgtools/upgtool.c
@@ -465,6 +465,11 @@ int main(int argc, char **argv)
printf("You cannot specify both create and extract\n");
return 1;
}
+ if(extract && !g_out_prefix)
+ {
+ printf("You need to specify output prefix (-o) to extract\n");
+ return 1;
+ }
int ret = 0;
if(create)