diff --git a/refit/README.md b/refit/README.md index 5cb94e7..fc426ce 100644 --- a/refit/README.md +++ b/refit/README.md @@ -25,6 +25,7 @@ n -> valid input check back for no arguments passed? ## Changelog +<2025-10-05> V0.3.6 - Recursive mode no longer requires the -n flag <2025-10-04> V0.3.5 - Added a function which returns the length of a number <2025-10-04> V0.3.5 - Changed the recursive mode into an linear x*y diff --git a/refit/src/modules/refit_create.py b/refit/src/modules/refit_create.py index 52b3385..2aaef7f 100644 --- a/refit/src/modules/refit_create.py +++ b/refit/src/modules/refit_create.py @@ -5,18 +5,13 @@ import sys from .refit_logger import logger from . import librefit -# logger.debug("Initiated refit_create.py") -# ---------------------------------------------------------------------- - class Refit_Create: """A class to create folders and files. It first calls the decider which lets the create_input_valid() function check if the input argument exists. If create_input_valid() returns - 'True' it continues to execute the command as per the given arguments. - - default folder name: directory""" + 'True' it continues to execute the command as per the given arguments.""" def __init__(self, args): """Initiating variables for creation""" @@ -122,16 +117,13 @@ class Refit_Create: sys.exit(1) # Exit the program if the -n argument is not passed - if self.n is None: + if self.n is None and self.recursive is None: logger.error( f"FUNC create_dispatcher(n=None ?) MSG: the number value cannot be '{self.n}'" ) print("Use the '-n' flag for the create command.") sys.exit(1) else: - logger.debug( - f"FUNC: input_validator() MSG: valid number entered n={self.n}" - ) return True def create_dispatcher(self): diff --git a/refit/src/refit.py b/refit/src/refit.py index a1916ba..33cf9d7 100644 --- a/refit/src/refit.py +++ b/refit/src/refit.py @@ -10,11 +10,6 @@ from modules.refit_create import Refit_Create CONFIG_FILE = "version.cfg" -# TODO: comment the actions done in read_version_config() - - -# TODO: see the TODO in librefit: move the config file section into the -# libary def read_version_config(): # logger.debug(f"Start read_version_config() with config file: {CONFIG_FILE}") config = configparser.ConfigParser() diff --git a/refit/src/version.cfg b/refit/src/version.cfg index 9c9005b..c565e73 100644 --- a/refit/src/version.cfg +++ b/refit/src/version.cfg @@ -1,5 +1,5 @@ [VERSION] major = 0 minor = 3 -patch = 5 +patch = 6