Browse Source

Rearrange flags on sdist command

default_compile_flags
vector-of-bool 5 years ago
parent
commit
e324031738
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/dds/dds.main.cpp

+ 6
- 4
src/dds/dds.main.cpp View File

@@ -189,14 +189,14 @@ struct cli_sdist {

common_flags _common{cmd};

common_project_flags project{cmd};

args::Group sdist_group{cmd, "`sdist` commands"};

struct {
cli_sdist& parent;
args::Command cmd{parent.sdist_group, "create", "Create a source distribution"};

common_project_flags project{cmd};

path_flag out{cmd,
"out",
"The destination of the source distribution",
@@ -210,7 +210,7 @@ struct cli_sdist {

int run() {
dds::sdist_params params;
params.project_dir = parent.project.root.Get();
params.project_dir = project.root.Get();
params.dest_path = out.Get();
params.force = force.Get();
dds::create_sdist(params);
@@ -224,6 +224,8 @@ struct cli_sdist {
"export",
"Export a source distribution to a repository"};

common_project_flags project{cmd};

repo_where_flag repo_where{cmd};
args::Flag force{cmd,
"replace-if-exists",
@@ -238,7 +240,7 @@ struct cli_sdist {
dds::fs::remove_all(tmp_sdist);
}
dds::sdist_params params;
params.project_dir = parent.project.root.Get();
params.project_dir = project.root.Get();
params.dest_path = tmp_sdist;
params.force = true;
auto sdist = dds::create_sdist(params);

Loading…
Cancel
Save