if (!args.size())
usage();
- const DispatchTable &dt = CallType::detect(args).getDispatch();
+ CallType *ct = CallType::detect(args);
+ if (!ct)
+ usage();
- if (!Command::run(dt, args))
+ if (!Command::run(ct->getDispatch(), args))
usage();
exit(0);