From f9550ee71d928971b83dd31ca145c9bd48e2e614 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 31 Jan 2024 08:51:52 +0200 Subject: Relax bdep-new no-readme sub-option to allow existing README --- bdep/new.cli | 2 +- bdep/new.cxx | 7 ------- 2 files changed, 1 insertion(+), 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) -- cgit v1.1