Skip to content

Commit

Permalink
Tweaks to main script
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Dec 12, 2020
1 parent 61e35a6 commit 6ba370b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crystals/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"pwscf": Crystal.from_pwscf,
"cod": Crystal.from_cod,
"pdb": Crystal.from_pdb,
"mp": Crystal.from_mp, # REQUIRES API_KEY in environment
"mp": Crystal.from_mp,
}

INFO_HELP = "Display the crystallographic information related to a crystal file or database entry."
Expand Down Expand Up @@ -115,8 +115,8 @@ def guess_constructor(i):
return cryst


def main(args=None):
args = parser.parse_args(args)
def main():
args = parser.parse_args()

if args.command == "info":
if args.type is not None:
Expand Down

0 comments on commit 6ba370b

Please sign in to comment.