diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-01-31 08:51:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-01-31 08:51:52 +0200 |
commit | f9550ee71d928971b83dd31ca145c9bd48e2e614 (patch) | |
tree | 38a54bab31110a4e4a0dcb48d9cac2a72d57cc40 | |
parent | 4ca597deb7cbbeb0ff3a1bf1d6d156461947a4e7 (diff) |
Relax bdep-new no-readme sub-option to allow existing README
-rw-r--r-- | bdep/new.cli | 2 | ||||
-rw-r--r-- | bdep/new.cxx | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/bdep/new.cli b/bdep/new.cli index fa003c2..5483d81 100644 --- a/bdep/new.cli +++ b/bdep/new.cli @@ -508,7 +508,7 @@ namespace bdep \li|\n\ \ \ \cb{no-readme} - Don't add \cb{README.md}.| + Don't add new \cb{README.md} (but still check for the existing).| \li|\n\ \ \ \cb{alt-naming} diff --git a/bdep/new.cxx b/bdep/new.cxx index 6cfc093..c49218d 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -1466,13 +1466,6 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) info << "requested: " << vc; } - if (readme_f) - { - if (!readme) - fail << "--type|-t,no-readme sub-option specified but README " - << "already exists"; - } - if (license_e) { if (!license_o) |