# This file is part of Recent changes Goat compatible Discord webhook (RcGcDw).
#
# RcGcDw is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# RcGcDw is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with RcGcDw. If not, see <http://www.gnu.org/licenses/>.
importargparse
importjson
importserver
importpathlib
importshutil
importsys
importtime
parser=argparse.ArgumentParser(description="Test RcGcDw with mocked data")
parser.add_argument("--config",type=int,default=1,help="Number of config to use while testing the mocked server (default=1). Number corresponds to files in configs/settings#.json")
parser.add_argument("--ignore-config",action='store_false',help="Ignore lack of existing config.json")
parser.add_argument("--no-client",action='store_true',help="Skip starting the client")
command_args=parser.parse_args()
# Backup old settings.json and copy from configs/settingsX.json to proper relative location