update a Docstring to better explain the __call__ function
This commit is contained in:
@@ -28,8 +28,9 @@ class Refit_Create:
|
|||||||
self.filemode = args.filemode
|
self.filemode = args.filemode
|
||||||
|
|
||||||
def create_input_valid(self):
|
def create_input_valid(self):
|
||||||
"""Checks if the input is valid and returns either True or
|
"""Checks if the input is argument for its existence. If no input
|
||||||
throws an error in log and terminal."""
|
argument with a value is passed, the current directory is used and
|
||||||
|
passed to the input"""
|
||||||
|
|
||||||
logger.debug(f"Start create_input_valid() value= {self.input}")
|
logger.debug(f"Start create_input_valid() value= {self.input}")
|
||||||
if self.input is None:
|
if self.input is None:
|
||||||
@@ -41,7 +42,7 @@ class Refit_Create:
|
|||||||
return self.input
|
return self.input
|
||||||
else:
|
else:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Exiting create_input_valid() with valid input. value= {self.input}"
|
f"FUNC: create_input_valid() MSG: Exit with valid input. value= {self.input}"
|
||||||
)
|
)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@@ -132,5 +133,5 @@ class Refit_Create:
|
|||||||
self.create_n_folders(self.n, self.input, self.name)
|
self.create_n_folders(self.n, self.input, self.name)
|
||||||
|
|
||||||
def __call__(self):
|
def __call__(self):
|
||||||
"""Gets called when the object is treated as an function"""
|
"""Gets called when the 'create' subcommand is used."""
|
||||||
self.rf_create_decider()
|
self.rf_create_decider()
|
||||||
|
|||||||
Reference in New Issue
Block a user