{"id":8767,"date":"2023-08-15T17:13:29","date_gmt":"2023-08-15T17:13:29","guid":{"rendered":"https:\/\/davelevy.info\/wiki\/?p=8767"},"modified":"2023-08-15T17:13:33","modified_gmt":"2023-08-15T17:13:33","slug":"python-arguments","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/python-arguments\/","title":{"rendered":"Python &#038; Arguments"},"content":{"rendered":"\n<p>It seems that I have chosen to document Python in  <a href=\"https:\/\/davelevy.info\/wiki\/tag\/python\/\">a series of articles<\/a>, and so here is one on arguments. <\/p>\n\n\n\n<!--more-->\n\n\n\n<ul class=\"wp-block-list\">\n<li>Digital Ocean on <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/python-command-line-arguments\">the three options<\/a><\/li>\n\n\n\n<li>PyMOT on <a href=\"https:\/\/pymotw.com\/2\/getopt\/\">getopt<\/a><\/li>\n\n\n\n<li>Real Python <a href=\"https:\/\/realpython.com\/command-line-interfaces-python-argparse\/\">on argparse<\/a>, which is the current recommended way to do things. <\/li>\n\n\n\n<li>Digital Ocean <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-use-argparse-to-write-command-line-programs-in-python\">on argparse<\/a>.<\/li>\n<\/ul>\n\n\n\n<p>I have bookmarked page 207 in my manual, which will probably be old school, I have the 2003 edition. I may make some more notes. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>It seems that I have chosen to document Python in a series of articles, and so here is one on arguments.<\/p>\n","protected":false},"author":8,"featured_media":8768,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"1"},"categories":[3],"tags":[1970,36,45,911],"class_list":["post-8767","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-arguments","tag-programming","tag-python","tag-technology"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2023\/08\/argument-halcooks-unsplash-w1080.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/8767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=8767"}],"version-history":[{"count":1,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/8767\/revisions"}],"predecessor-version":[{"id":8769,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/8767\/revisions\/8769"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/8768"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=8767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=8767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=8767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}