@@ -15,7 +15,7 @@ use sqlx::{Connection, Either, PgConnection, postgres::PgConnectOptions, types::
1515use syn2mas:: {
1616 LockedMasDatabase , MasWriter , Progress , ProgressStage , SynapseReader , synapse_config,
1717} ;
18- use tracing:: { Instrument , error, info, info_span, warn } ;
18+ use tracing:: { Instrument , error, info, info_span} ;
1919
2020use crate :: util:: { DatabaseConnectOptions , database_connection_from_config_with_options} ;
2121
@@ -32,15 +32,6 @@ pub(super) struct Options {
3232 #[ command( subcommand) ]
3333 subcommand : Subcommand ,
3434
35- /// This version of the syn2mas tool is EXPERIMENTAL and INCOMPLETE. It is
36- /// only suitable for TESTING. If you want to use this tool anyway,
37- /// please pass this argument.
38- ///
39- /// If you want to migrate from Synapse to MAS today, please use the
40- /// Node.js-based tool in the MAS repository.
41- #[ clap( long = "i-swear-i-am-just-testing-in-a-staging-environment" ) ]
42- experimental_accepted : bool ,
43-
4435 /// Path to the Synapse configuration (in YAML format).
4536 /// May be specified multiple times if multiple Synapse configuration files
4637 /// are in use.
@@ -85,14 +76,6 @@ impl Options {
8576 #[ tracing:: instrument( "cli.syn2mas.run" , skip_all) ]
8677 #[ allow( clippy:: too_many_lines) ]
8778 pub async fn run ( self , figment : & Figment ) -> anyhow:: Result < ExitCode > {
88- warn ! (
89- "This version of the syn2mas tool is EXPERIMENTAL and INCOMPLETE. Do not use it, except for TESTING."
90- ) ;
91- if !self . experimental_accepted {
92- error ! ( "Please agree that you can only use this tool for testing." ) ;
93- return Ok ( ExitCode :: FAILURE ) ;
94- }
95-
9679 if self . synapse_configuration_files . is_empty ( ) {
9780 error ! ( "Please specify the path to the Synapse configuration file(s)." ) ;
9881 return Ok ( ExitCode :: FAILURE ) ;
0 commit comments