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

Allow unknown flags #34

Open
jeffque opened this issue Jan 20, 2023 · 0 comments
Open

Allow unknown flags #34

jeffque opened this issue Jan 20, 2023 · 0 comments
Labels
ouroborus/gem About ouroborus lib

Comments

@jeffque
Copy link
Contributor

jeffque commented Jan 20, 2023

Check #23

If there is a not previously treated CLI flag, one should not forbid user to inform it.

Could be used to bypass a known flag, if for some reason the Ouroborus::Container implementation is not proper.

CLI flags must always start with a - or --. It can has a complement, it should be informed together with the flag. Complement can be a single value, or a list. If complement is a list, then it shall be reduced as a comma separated string.

Passing a flag that does not need a complement:

def createContainer
  # creates a new valid Ouroborus::Container instance
end

container = craeteContainer
container.addDockerFlag "--rm"
container.addDockerFlag "--dns", "8.8.8.8", "8.8.4.4"
@jeffque jeffque added ouroborus/exec About ouroborus executable ouroborus/gem About ouroborus lib and removed ouroborus/exec About ouroborus executable labels Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ouroborus/gem About ouroborus lib
Projects
None yet
Development

No branches or pull requests

1 participant