Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate user input in command-line options #2

Closed
6 tasks
PedroAS7 opened this issue Sep 27, 2024 · 0 comments · Fixed by #13
Closed
6 tasks

Validate user input in command-line options #2

PedroAS7 opened this issue Sep 27, 2024 · 0 comments · Fixed by #13
Labels
feature Mandatory feature

Comments

@PedroAS7
Copy link
Collaborator

PedroAS7 commented Sep 27, 2024

Child task of #1

User input needs to be validated:

  • Make sure the input file exists
  • Make sure the output file does not exist. In case it does, warn the user about the fact that it is about to be overwritten

In case the input file does not contain a hidden message:

  • Make sure the message file exist
  • Make sure the message file size is $\lt 2^{32}$ bytes-long

In case the input file already contains a hidden message:

  • Make sure the message file does not exist. In case it does, warn the user about the fact that it is about to be overwritten

If we're able to implement a variable number of bits to change per color:

  • Make sure the number of bits $n$ is $1 \leq n \leq 8$, and $n$ is a power of 2
@PedroAS7 PedroAS7 added the feature Mandatory feature label Sep 27, 2024
@lentidas lentidas linked a pull request Oct 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Mandatory feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants