{"id":94,"date":"2021-09-28T09:50:01","date_gmt":"2021-09-28T09:50:01","guid":{"rendered":"https:\/\/christoph-schmalfuss.de\/blog\/?p=94"},"modified":"2021-10-22T11:10:08","modified_gmt":"2021-10-22T11:10:08","slug":"python-argumente-parsen-cli","status":"publish","type":"post","link":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/","title":{"rendered":"Python: Argumente parsen (CLI)"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse-1024x576.png\" alt=\"\" class=\"wp-image-105\" srcset=\"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse-1024x576.png 1024w, https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse-300x169.png 300w, https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse-768x432.png 768w, https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse-1536x864.png 1536w, https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse-1600x900.png 1600w, https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png 1940w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Bestimmt habt ihr schon mal Python Programme benutzt, denen man gleich beim starten noch bestimmte Werte mitgeben kann. Und genau so ein Skript wollen wir heute schreiben. Ich bin Chris und das ist Programmieren mit Chris. Viel Spa\u00df.<\/p>\n\n\n\n<p>Das Video hier ist in Zusammenarbeit mit dem lieben Felix von <a href=\"https:\/\/hellocoding.de\/blog\/coding-language\/python\/cli-command-in-python\">Hello Coding <\/a>entstanden. Mehr dazu erz\u00e4hle ich am Ende des Videos, wir steigen erstmal in den Inhalt ein.<\/p>\n\n\n\n<p>Normalerweise starten wir Python Programme ja z.B. mit Befehlen wie diesem hier:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>python3 hello.py<\/code><\/pre><\/div>\n\n\n\n<p>Unser Ziel ist es, dass wir ein Programm schreiben, dem wir Argumente mitgeben k\u00f6nnen.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>python3 hello.py --name Chris<\/code><\/pre><\/div>\n\n\n\n<p>Damit Python das Argument lesen kann, m\u00fcssen m\u00fcssen wir die angegebenen Argumente analysieren. Oder anders ausgedr\u00fcckt: Wir m\u00fcssen sie parsen. Passenderweise nutzen wir daf\u00fcr das Modul <code>argparse<\/code>. <\/p>\n\n\n\n<p>Okay, legen wir im Quellcode los. <\/p>\n\n\n\n<p>Ich hab jetzt schon mal eine leere Python Datei erstellt. Die tr\u00e4gt den Namen <code>hello.py<\/code>. <\/p>\n\n\n\n<p>Wie immer importiere ich zuerst die ben\u00f6tigten Module.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import argparse<\/code><\/pre><\/div>\n\n\n\n<p>Als n\u00e4chstes lege ich die Grundstruktur meines Skriptes an. Als erstes brauchen wir eine main Funktion. In dieser erstellen wir gleich einen Parser und legen unsere Argumente an. <\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>def main():\n    parser = argparse.ArgumentParser()\n    parser.add_argument(&#39;--name&#39;)\n    \n    args = parser.parse_args()\n    print(args)<\/code><\/pre><\/div>\n\n\n\n<p>Die Main-Funktion soll jetzt immer aufgerufen werden, wenn das Programm gestartet wird. Das legen wir am Ende des Dokumentes fest. <\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>if __name__ == &quot;__main__&quot;:\n    main()<\/code><\/pre><\/div>\n\n\n\n<p>Das Auslesen der Argumente funktioniert schon mal. Jetzt basteln wir eine neue Funktion, die die Argumente weiter verarbeitet. Wir sorgen jetzt daf\u00fcr, dass der Name, den der Nutzer eintippt, in der ausgegebenen Begr\u00fc\u00dfung auftaucht. Ich f\u00fcge deshalb meiner Main-Funktion erstmal eine neue Funktion mit dem Namen <code>say_hello<\/code> hinzu.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>def main():\n    parser = argparse.ArgumentParser()\n    parser.add_argument(&#39;--name&#39;)\n    \n    args = parser.parse_args()\n    say_hello(args)<\/code><\/pre><\/div>\n\n\n\n<p>\u00dcber der Main-Funktion lege ich jetzt die say_hello-Funktion an. <\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>def say_hello(args):\n    if args.name:\n        print(f&#39;Hallo {args.name}!&#39;)\n\n    else:\n        print(&#39;Hallo unbekannter Freund!&#39;)\n<\/code><\/pre><\/div>\n\n\n\n<p>So sollte das Ganze jetzt schon funktionieren. Probieren wir&#8217;s aus!<\/p>\n\n\n\n<p>Und jetzt hatte ich ja noch versprochen, einige Worte zu Felix zu sagen. Felix betreibt den Programmier-Blog Hello Coding, wo er inzwischen schon eine Menge Tutorials ver\u00f6ffentlicht hat. Felix hat sich auch mit dem Thema dieses Videos besch\u00e4ftigt, sein Artikel geht aber fachlich noch ein bisschen weiter. Wenn ihr also noch tiefer in das Thema einsteigen wollt, dann findet ihr den passenden Artikel  <a href=\"https:\/\/hellocoding.de\/blog\/coding-language\/python\/cli-command-in-python\">hier<\/a>. Lasst uns gern auch hier auf YouTube oder in Felix Blog einen Kommentar da, ob das f\u00fcr euch hilfreich ist und ob ihr euch zuk\u00fcnftig noch mehr solcher gemeinsamen Inhalte w\u00fcnscht. <\/p>\n\n\n\n<p>Okay, soviel aber erstmal f\u00fcr heute. Wenn ihr den Kanal unterst\u00fctzen wollt, dann findet ihr alle Infos dazu in der Videobeschreibung. Jetzt w\u00fcnsch ich euch ganz viel Spa\u00df beim Ausprobieren, bleibt neugierig und bis bald!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 Kompletter Quellcode<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import argparse\n\n\ndef say_hello(args):\n    if args.name:\n        print(f&#39;Hallo {args.name}!&#39;)\n\n    else:\n        print(&#39;Hallo unbekannter Freund!&#39;)\n\n\ndef main():\n    parser = argparse.ArgumentParser()\n    parser.add_argument(&#39;--name&#39;)\n    \n    args = parser.parse_args()\n    say_hello(args)\n\n\nif __name__ == &quot;__main__&quot;:\n    main()<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bestimmt habt ihr schon mal Python Programme benutzt, denen man gleich beim starten noch bestimmte Werte mitgeben kann. Und genau&hellip;<\/p>\n","protected":false},"author":1,"featured_media":105,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-94","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-macos-und-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python: Argumente parsen (CLI) &mdash; Programmieren mit Chris<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python: Argumente parsen (CLI) &mdash; Programmieren mit Chris\" \/>\n<meta property=\"og:description\" content=\"Bestimmt habt ihr schon mal Python Programme benutzt, denen man gleich beim starten noch bestimmte Werte mitgeben kann. Und genau&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"Programmieren mit Chris\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-28T09:50:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-22T11:10:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1940\" \/>\n\t<meta property=\"og:image:height\" content=\"1091\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@chrischmayt\" \/>\n<meta name=\"twitter:site\" content=\"@chrischmayt\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"chris\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#organization\",\"name\":\"Programmieren mit Chris\",\"url\":\"https:\/\/christoph-schmalfuss.de\/blog\/\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/christoph-schmalfu\\u00df-52a93b209\/\",\"https:\/\/www.youtube.com\/channel\/UC0faHRYVxDn7chW573SSh8A\",\"https:\/\/twitter.com\/chrischmayt\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#logo\",\"inLanguage\":\"de\",\"url\":\"http:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/08\/programmieren-mit-chris-logo-ohne-schatten-3000x3000-transparent.png\",\"contentUrl\":\"http:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/08\/programmieren-mit-chris-logo-ohne-schatten-3000x3000-transparent.png\",\"width\":3000,\"height\":3000,\"caption\":\"Programmieren mit Chris\"},\"image\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#website\",\"url\":\"https:\/\/christoph-schmalfuss.de\/blog\/\",\"name\":\"Programmieren lernen mit Chris\",\"description\":\"Tutorials | Vlogs\",\"publisher\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/christoph-schmalfuss.de\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#primaryimage\",\"inLanguage\":\"de\",\"url\":\"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png\",\"contentUrl\":\"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png\",\"width\":1940,\"height\":1091},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#webpage\",\"url\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/\",\"name\":\"Python: Argumente parsen (CLI) &mdash; Programmieren mit Chris\",\"isPartOf\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#primaryimage\"},\"datePublished\":\"2021-09-28T09:50:01+00:00\",\"dateModified\":\"2021-10-22T11:10:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/christoph-schmalfuss.de\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python: Argumente parsen (CLI)\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#webpage\"},\"author\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#\/schema\/person\/b64d7415ba9ac63f395509d7097012bb\"},\"headline\":\"Python: Argumente parsen (CLI)\",\"datePublished\":\"2021-09-28T09:50:01+00:00\",\"dateModified\":\"2021-10-22T11:10:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#webpage\"},\"wordCount\":420,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png\",\"articleSection\":[\"MacOS und Linux\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#\/schema\/person\/b64d7415ba9ac63f395509d7097012bb\",\"name\":\"chris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/christoph-schmalfuss.de\/blog\/#personlogo\",\"inLanguage\":\"de\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/176e906a49456dda30761449564e6e69d6b070f731880e6ace0d8e2d1746f1b6?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/176e906a49456dda30761449564e6e69d6b070f731880e6ace0d8e2d1746f1b6?s=96&d=retro&r=g\",\"caption\":\"chris\"},\"sameAs\":[\"http:\/\/christoph-schmalfuss.de\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python: Argumente parsen (CLI) &mdash; Programmieren mit Chris","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/","og_locale":"de_DE","og_type":"article","og_title":"Python: Argumente parsen (CLI) &mdash; Programmieren mit Chris","og_description":"Bestimmt habt ihr schon mal Python Programme benutzt, denen man gleich beim starten noch bestimmte Werte mitgeben kann. Und genau&hellip;","og_url":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/","og_site_name":"Programmieren mit Chris","article_published_time":"2021-09-28T09:50:01+00:00","article_modified_time":"2021-10-22T11:10:08+00:00","og_image":[{"width":1940,"height":1091,"url":"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png","path":"\/var\/www\/virtual\/schmalin\/html\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png","size":"full","id":105,"alt":"","pixels":2116540,"type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@chrischmayt","twitter_site":"@chrischmayt","twitter_misc":{"Verfasst von":"chris","Gesch\u00e4tzte Lesezeit":"3\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/christoph-schmalfuss.de\/blog\/#organization","name":"Programmieren mit Chris","url":"https:\/\/christoph-schmalfuss.de\/blog\/","sameAs":["https:\/\/www.linkedin.com\/in\/christoph-schmalfu\u00df-52a93b209\/","https:\/\/www.youtube.com\/channel\/UC0faHRYVxDn7chW573SSh8A","https:\/\/twitter.com\/chrischmayt"],"logo":{"@type":"ImageObject","@id":"https:\/\/christoph-schmalfuss.de\/blog\/#logo","inLanguage":"de","url":"http:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/08\/programmieren-mit-chris-logo-ohne-schatten-3000x3000-transparent.png","contentUrl":"http:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/08\/programmieren-mit-chris-logo-ohne-schatten-3000x3000-transparent.png","width":3000,"height":3000,"caption":"Programmieren mit Chris"},"image":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/#logo"}},{"@type":"WebSite","@id":"https:\/\/christoph-schmalfuss.de\/blog\/#website","url":"https:\/\/christoph-schmalfuss.de\/blog\/","name":"Programmieren lernen mit Chris","description":"Tutorials | Vlogs","publisher":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/christoph-schmalfuss.de\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"ImageObject","@id":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#primaryimage","inLanguage":"de","url":"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png","contentUrl":"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png","width":1940,"height":1091},{"@type":"WebPage","@id":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#webpage","url":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/","name":"Python: Argumente parsen (CLI) &mdash; Programmieren mit Chris","isPartOf":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#primaryimage"},"datePublished":"2021-09-28T09:50:01+00:00","dateModified":"2021-10-22T11:10:08+00:00","breadcrumb":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/christoph-schmalfuss.de\/blog\/"},{"@type":"ListItem","position":2,"name":"Python: Argumente parsen (CLI)"}]},{"@type":"Article","@id":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#article","isPartOf":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#webpage"},"author":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/#\/schema\/person\/b64d7415ba9ac63f395509d7097012bb"},"headline":"Python: Argumente parsen (CLI)","datePublished":"2021-09-28T09:50:01+00:00","dateModified":"2021-10-22T11:10:08+00:00","mainEntityOfPage":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#webpage"},"wordCount":420,"commentCount":0,"publisher":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/#organization"},"image":{"@id":"https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/christoph-schmalfuss.de\/blog\/wp-content\/uploads\/2021\/10\/Thumbnail-argparse.png","articleSection":["MacOS und Linux"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/christoph-schmalfuss.de\/blog\/2021\/09\/28\/python-argumente-parsen-cli\/#respond"]}]},{"@type":"Person","@id":"https:\/\/christoph-schmalfuss.de\/blog\/#\/schema\/person\/b64d7415ba9ac63f395509d7097012bb","name":"chris","image":{"@type":"ImageObject","@id":"https:\/\/christoph-schmalfuss.de\/blog\/#personlogo","inLanguage":"de","url":"https:\/\/secure.gravatar.com\/avatar\/176e906a49456dda30761449564e6e69d6b070f731880e6ace0d8e2d1746f1b6?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/176e906a49456dda30761449564e6e69d6b070f731880e6ace0d8e2d1746f1b6?s=96&d=retro&r=g","caption":"chris"},"sameAs":["http:\/\/christoph-schmalfuss.de\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/posts\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":8,"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions\/127"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/media\/105"}],"wp:attachment":[{"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/categories?post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/christoph-schmalfuss.de\/blog\/wp-json\/wp\/v2\/tags?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}