Created
August 12, 2019 17:29
-
-
Save shubhamagarwal92/2e4c829fe309bf2e4079e4b86d37985a to your computer and use it in GitHub Desktop.
Prints command line arguments from argparse
This file contains hidden or 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 | |
args = parser.parse_args() | |
for arg in vars(args): | |
print("{:<20}: {}".format(arg, getattr(args, arg))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment