-
Notifications
You must be signed in to change notification settings - Fork 8
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
Multistate #53
Multistate #53
Conversation
def run(trexio_filename, filename, filetype, back_end, spin=None, motype=None, state_suffix=None): | ||
|
||
# Do the cleanup if the file already exists | ||
file_cleanup(trexio_filename, back_end) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we now have remove_trexio_file
function which works nicely with the --overwrite
CLI option. Do we really need to do file_cleanup
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
I changed the command line option from "-w True" to "-w". The presence of -w
sets overwrite to True
, the absence to False
. It is more common for boolean command-line values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I know how to do that with argparse
(which is what I use for CLI nowadays) but docopt
is confusing sometimes. Thanks!
I did the changes requested in #40 . I suggest that we merge this branch and close #40