continued restructure for dpmdk and updated default behaviour

This commit is contained in:
Chris Punches
2025-03-08 17:44:23 -05:00
parent f0859c93c3
commit 255debef50
10 changed files with 73 additions and 28 deletions

View File

@@ -167,3 +167,22 @@ int main_list_modules(const ModuleLoader& loader)
return 0;
}
/**
* @brief Displays usage information for DPM
*
* Shows a help message describing the available command-line options
* and general usage information for the DPM utility.
*
* @return 0 on success
*/
int main_show_help() {
std::cout << "Usage: dpm [options] [module-name] [module args...] [module-command] [command-args]\n\n"
<< "Options:\n\n"
<< " -m, --module-path PATH Path to DPM modules (overrides modules.modules_path in config)\n"
<< " -c, --config-dir PATH Path to DPM configuration directory\n"
<< " -l, --list-modules List available modules\n"
<< " -h, --help Show this help message\n\n"
<< "For module-specific help, use: dpm <module-name> help\n\n";
return 0;
}