Skip to content

Change configure_log_file function to accept arguments with or without a file extension #21

@AndreLaranjeira

Description

@AndreLaranjeira

Currently, the configure_log_file function works by receiving a file name argument that must have an extension. Change the current behavior in the following ways:

  1. Create a function to breakdown a file argument into the file name and the file extension;
  2. Change the configure_log_file to add a default extension (.log) to any argument supplied without an extension and to give a warning when the filename argument has a different extension to it than the default one or is a hidden file (file name empty);
  3. Add functionality to the make clean command in the Makefile to prompt the user to the delete any files with the default log file extension.

Important: If this change damages the old usage of the function, it should be included in a major release, not a minor release or patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementSomething to be refactored or changed in the existing code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions