Last active
January 21, 2021 14:43
-
-
Save vstrimaitis/b674b42a83556e94f585437410e84902 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("version", type=str, nargs="?", default=None) | |
args = parser.parse_args() | |
if args.version is not None: | |
print(f"Installing version {args.version}") | |
else: | |
print("Installing latest version") | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment