aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-07-05 10:30:08 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-07-31 14:40:23 +0300
commit6b2dd1cd8515009508d627cad13bd39dd770638c (patch)
tree343ccad61e8cf43dd8fe87bae26b15c069355bdd
parentadf60035e680e1a11fb128cbf9697114d1b9c6a9 (diff)
Drop some old backward compatibility related code
-rw-r--r--bdep/new.cli18
-rw-r--r--bdep/new.cxx7
2 files changed, 0 insertions, 25 deletions
diff --git a/bdep/new.cli b/bdep/new.cli
index bcbc6c6..9f3f12e 100644
--- a/bdep/new.cli
+++ b/bdep/new.cli
@@ -656,12 +656,6 @@ namespace bdep
bool no-readme;
bool no-package-readme;
bool alt-naming;
-
- // Old name for the subdir sub-option (thus undocumented). @@ TMP drop
- //
- // If specified, we will fail suggesting to use the new sub-option instead.
- //
- dir_path "source";
};
class cmd_new_lib_options
@@ -687,12 +681,6 @@ namespace bdep
bool no-readme;
bool no-package-readme;
bool alt-naming;
-
- // Old name for the subdir sub-option (thus undocumented). @@ TMP drop.
- //
- // If specified, we will fail suggesting to use the new sub-option instead.
- //
- dir_path "source";
};
class cmd_new_bare_options
@@ -742,12 +730,6 @@ namespace bdep
package rather than a new project."
}
- // Old name for the --source option (thus undocumented).
- //
- // If specified, we will fail suggesting to use the new option instead.
- //
- bool --subdirectory;
-
dir_path --output-dir|-o
{
"<dir>",
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 9f4ddf6..9f445a0 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -495,9 +495,6 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
? cao.type ()
: optional<string> ());
- if (o.subdirectory ())
- fail << "--subdirectory was renamed to --source";
-
if (o.package () && o.source ())
fail << "both --package and --source specified";
@@ -606,10 +603,6 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
//
const type& t (o.type ());
- if ((t == type::exe && t.exe_opt.source_specified ()) ||
- (t == type::lib && t.lib_opt.source_specified ()))
- fail << "--type|-t,source was renamed to --type|-t,subdir";
-
// For a library source subdirectory (--source) we don't generate the export
// stub, integration tests (because there is no export stub), or the version
// header (because the project name used in the .in file will most likely be