aboutsummaryrefslogtreecommitdiff
path: root/zen/cmds/importproject.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-01-13 07:08:02 -0800
committerGitHub <[email protected]>2023-01-13 07:08:02 -0800
commit61f18d2de7f37aa03aa09d55562d05c6da033eb2 (patch)
tree217828004ee4417b6f2be80a7bf778b808798e4d /zen/cmds/importproject.cpp
parentAdd info (GET) endpoints for structured cache (#211) (diff)
downloadarchived-zen-61f18d2de7f37aa03aa09d55562d05c6da033eb2.tar.xz
archived-zen-61f18d2de7f37aa03aa09d55562d05c6da033eb2.zip
zen command line tool improvements (#212)
- Feature: zen command line tool `cache-info` to show cache, namespace or bucket info - Feature: zen command line tool `project-info` to show store, project or oplog info - Feature: zen command line tool `project-drop` to drop project or oplog - Feature: zen command line tool `gc` to trigger a GC run - Feature: zen command line tool `gc-info` to check status of GC - Improvement: zen command line tool now fails on any unrecognized arguments - Improvement: zen command line tool now displays extra help for all sub-commands - Improvement: host address can now be configured for zen command line tool `drop` command changelog
Diffstat (limited to 'zen/cmds/importproject.cpp')
-rw-r--r--zen/cmds/importproject.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/zen/cmds/importproject.cpp b/zen/cmds/importproject.cpp
index f92e8fcc0..3a2605ebb 100644
--- a/zen/cmds/importproject.cpp
+++ b/zen/cmds/importproject.cpp
@@ -28,6 +28,7 @@ ImportProjectCommand::ImportProjectCommand()
m_Options.add_option("", "s", "source", "Source path", cxxopts::value(m_SourcePath), "<sourcepath>");
m_Options.add_option("", "p", "project", "Project name", cxxopts::value(m_ProjectName), "<projectname>");
m_Options.add_option("", "o", "oplog", "Oplog name", cxxopts::value(m_OplogNames), "<oplog>");
+ m_Options.parse_positional({"source", "project", "oplog"});
}
ImportProjectCommand::~ImportProjectCommand() = default;
@@ -39,8 +40,10 @@ ImportProjectCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** a
ZEN_UNUSED(GlobalOptions);
- m_Options.parse_positional({"source", "project", "oplog"});
- m_Options.parse(argc, argv);
+ if (!ParseOptions(argc, argv))
+ {
+ return 0;
+ }
if (m_ProjectName.empty())
{