diff --git a/usertools/dpdk-hugepages.py b/usertools/dpdk-hugepages.py index a22d504d3a..bf2575ba36 100755 --- a/usertools/dpdk-hugepages.py +++ b/usertools/dpdk-hugepages.py @@ -272,6 +272,9 @@ def main(): args.reserve = args.setup args.mount = True + if not (args.show or args.mount or args.unmount or args.clear or args.reserve): + parser.error("no action specified") + if args.pagesize: pagesize_kb = get_memsize(args.pagesize) else: