Skip to content

Instantly share code, notes, and snippets.

@shubhamagarwal92
Created August 12, 2019 17:29
Show Gist options
  • Save shubhamagarwal92/2e4c829fe309bf2e4079e4b86d37985a to your computer and use it in GitHub Desktop.
Save shubhamagarwal92/2e4c829fe309bf2e4079e4b86d37985a to your computer and use it in GitHub Desktop.
Prints command line arguments from argparse
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