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

Add ability to specify a custom configuration file #1143

Closed
wants to merge 1 commit into from
Closed

Add ability to specify a custom configuration file #1143

wants to merge 1 commit into from

Conversation

guilhem
Copy link
Contributor

@guilhem guilhem commented Mar 23, 2018

This is useful when bootstraping a new workstation.

This is useful when bootstraping a new workstation.
Copy link
Owner

@lra lra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this, a couple of comments to deal with.

@@ -19,9 +19,9 @@ class Mackup(object):

"""Main Mackup class."""

def __init__(self):
def __init__(self, filename=None):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you assert that the filename parameter is valid? e.g. https://github.com/lra/mackup/blob/master/mackup/config.py#L40

-v --verbose Show additional details.
--version Show version.
-h --help Show this screen.
-c FILE --config=FILE Configuration file to use.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we go down this road, I guess we could leverage docopt to set a default file in the docstring, e.g. https://github.com/docopt/docopt#help-message-format

@simobasso
Copy link

Hi @guilhem @lra , any update on this one?

@guilhem
Copy link
Contributor Author

guilhem commented Nov 8, 2018

Close in favor of #1254

@guilhem guilhem closed this Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants