summaryrefslogtreecommitdiff
path: root/tools/vgremove.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/vgremove.c')
-rw-r--r--tools/vgremove.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/vgremove.c b/tools/vgremove.c
index f350f1c54..9aca5207b 100644
--- a/tools/vgremove.c
+++ b/tools/vgremove.c
@@ -87,6 +87,11 @@ int vgremove(struct cmd_context *cmd, int argc, char **argv)
{
int ret;
+ if (!argc) {
+ log_error("Please enter one or more volume group paths");
+ return EINVALID_CMD_LINE;
+ }
+
if (!lock_vol(cmd, ORPHAN, LCK_VG_WRITE)) {
log_error("Can't get lock for orphan PVs");
return ECMD_FAILED;