{"id":1951,"date":"2026-11-11T13:14:03","date_gmt":"2026-11-11T04:14:03","guid":{"rendered":"https:\/\/danlabs.kr\/?p=1951"},"modified":"2026-11-14T01:34:25","modified_gmt":"2026-11-13T16:34:25","slug":"python-argparse%eb%a1%9c-%eb%aa%85%eb%a0%b9%ec%a4%84-%eb%a7%8c%eb%93%a4%ea%b8%b0-%ec%a0%95%ec%88%98-%ea%b2%80%ec%82%ac%ec%99%80-%ec%b6%a9%eb%8f%8c-%ec%98%b5%ec%85%98-%eb%a7%89%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/danlabs.kr\/?p=1951","title":{"rendered":"Python argparse\ub85c \uba85\ub839\uc904 \ub9cc\ub4e4\uae30 \u2014 \uc815\uc218 \uac80\uc0ac\uc640 \ucda9\ub3cc \uc635\uc158 \ub9c9\uae30"},"content":{"rendered":"<p>\uc2a4\ud06c\ub9bd\ud2b8\uc5d0 \uac12\uc744 \ub118\uae38 \ub54c <code>sys.argv<\/code>\ub97c \uc9c1\uc811 \ud574\uc11d\ud558\uba74 \uc785\ub825 \uac80\uc0ac \ucf54\ub4dc\uac00 \uae08\uc138 \uae38\uc5b4\uc838\uc694. Python \ud45c\uc900 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc758 <code>argparse<\/code>\ub97c \uc4f0\uba74 \ub3c4\uc6c0\ub9d0\uacfc \uc778\uc790 \uac80\uc0ac\ub97c \ud55c\uacf3\uc5d0\uc11c \uc815\uc758\ud560 \uc218 \uc788\uc5b4\uc694. \uc544\ub798 \uc608\uc81c\ub294 Python 3.14.7 \uc0cc\ub4dc\ubc15\uc2a4\uc5d0\uc11c \uc2e4\ud589\ud588\uc73c\uba70, \uba85\ub839\uacfc \uc885\ub8cc \ucf54\ub4dc, \ucd9c\ub825\uc740 \uc791\uc5c5 \uae30\ub85d\uc5d0 \ub0a8\uacbc\uc5b4\uc694.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/dev-20261111-inline1.jpg\" alt=\"\uba85\ub839\uc904\uc758 \uc704\uce58 \uc778\uc790\uc640 \uc120\ud0dd \uc635\uc158\" \/><\/figure>\n<h2>\ud544\uc218 \uc22b\uc790\ub294 \uc704\uce58 \uc778\uc790\ub85c, \ucd9c\ub825 \ubc29\uc2dd\uc740 \uc635\uc158\uc73c\ub85c<\/h2>\n<p>\uc774 \uc608\uc81c\uc5d0\uc11c \ubc18\ub4dc\uc2dc \ubc1b\uc544\uc57c \ud560 \uc22b\uc790\ub294 \uc704\uce58 \uc778\uc790\ub85c \uc120\uc5b8\ud574\uc694. <code>add_argument(&#x27;number&#x27;, type=int)<\/code>\uc758 <code>type=int<\/code>\ub294 \uc804\ub2ec\ubc1b\uc740 \ubb38\uc790\uc5f4\uc744 \uc815\uc218\ub85c \ubc14\uafd4\uc694. \uc815\uc218\uac00 \uc544\ub2cc \uac12\uc744 \ub123\uc73c\uba74 \uacc4\uc0b0 \uc804\uc5d0 \uc624\ub958\uc640 \uc0ac\uc6a9\ubc95\uc744 \ubcf4\uc5ec \uc918\uc694. \uacf5\uc2dd \ud29c\ud1a0\ub9ac\uc5bc\uc5d0 \ub530\ub974\uba74 \ubcc0\ud658\uc744 \uc9c0\uc815\ud558\uc9c0 \uc54a\uc740 \uc778\uc790\ub294 \ubb38\uc790\uc5f4\ub85c \ub2e4\ub904\uc838\uc694.[1]<\/p>\n<p>\uc635\uc158\uc740 \uc774\ub984\uc744 \ubd99\uc5ec \uc804\ub2ec\ud574\uc694. \uc774 \uc608\uc81c\uc5d0\uc11c\ub294 <code>--verbose<\/code>\uac00 \uc790\uc138\ud55c \ucd9c\ub825\uc744 \ucf1c\uace0, <code>--quiet<\/code>\uac00 \uc22b\uc790\ub9cc \ucd9c\ub825\ud558\ub3c4\ub85d \uc815\uc758\ud588\uc5b4\uc694. \ub450 \uc635\uc158\uc740 \ud544\uc218\uac00 \uc544\ub2c8\uba70, \ubaa8\ub450 \uc0dd\ub7b5\ud574\ub3c4 \uc22b\uc790\ub9cc \ucd9c\ub825\ud574\uc694. \uc774\ub7f0 \ucd9c\ub825 \ubc29\uc2dd\uc740 \ud504\ub85c\uadf8\ub7a8 \uc791\uc131\uc790\uac00 \uc815\ud55c \ub3d9\uc791\uc774\uc5d0\uc694. argparse\ub294 \uc778\uc790\ub97c \ud574\uc11d\ud558\uace0 \uac80\uc0ac\ud558\uba70, \uacc4\uc0b0\uacfc \uacb0\uacfc \ucd9c\ub825\uc740 \ud504\ub85c\uadf8\ub7a8 \ucf54\ub4dc\uac00 \ub9e1\uc544\uc694.<\/p>\n<p>\ud30c\uc77c \uc774\ub984 \ub4a4\uc758 <code>4<\/code>\ub294 <code>number<\/code> \uc790\ub9ac\uc5d0 \ub4e4\uc5b4\uac00\uc694. <code>-v<\/code>\uc640 <code>--verbose<\/code>\ub294 \uac19\uc740 \uc635\uc158\uc758 \uc9e7\uc740 \uc774\ub984\uacfc \uae34 \uc774\ub984\uc774\uc5d0\uc694. \uc0ac\ub78c\uc774 \uacb0\uacfc\ub97c \uc77d\uc744 \ub54c\ub294 \uc124\uba85\uc744 \ubd99\uc774\uace0, \ub2e4\ub978 \ud504\ub85c\uadf8\ub7a8\uc5d0 \uacb0\uacfc\ub97c \uc804\ub2ec\ud560 \ub54c\ub294 \uc22b\uc790\ub9cc \ub0a8\uae30\ub3c4\ub85d \uad6c\ubd84\ud560 \uc218 \uc788\uc5b4\uc694. \ub450 \uc635\uc158\uc744 \ubaa8\ub450 \uc0dd\ub7b5\ud574\ub3c4 \uc22b\uc790\ub9cc \ub098\uc624\ubbc0\ub85c, \uc774 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c <code>-q<\/code>\ub294 \ucd9c\ub825 \ud615\uc2dd\uc744 \uba85\uc2dc\ud558\ub294 \uc5ed\ud560\uc744 \ud574\uc694.<\/p>\n<h2>\uc815\uc218\ub97c \ubc1b\uc544 \uc81c\uacf1\uc744 \ucd9c\ub825\ud558\ub294 \ucf54\ub4dc<\/h2>\n<p>\ub2e4\uc74c \ub0b4\uc6a9\uc744 <code>example.py<\/code>\ub85c \uc800\uc7a5\ud574\uc694. \uc81c\uacf1 \uacc4\uc0b0\uc740 \uc785\ub825\uacfc \uacb0\uacfc\ub97c \uc190\uc73c\ub85c\ub3c4 \ub300\uc870\ud558\uae30 \uc26c\uc6cc \uc608\uc81c\ub85c \ud0dd\ud588\uc5b4\uc694.<\/p>\n<pre><code>import argparse\np = argparse.ArgumentParser(description=&#x27;\uc81c\uacf1 \uacc4\uc0b0\uae30&#x27;)\np.add_argument(&#x27;number&#x27;, type=int, help=&#x27;\uc815\uc218&#x27;)\ng = p.add_mutually_exclusive_group()\ng.add_argument(&#x27;-v&#x27;, &#x27;--verbose&#x27;, action=&#x27;store_true&#x27;)\ng.add_argument(&#x27;-q&#x27;, &#x27;--quiet&#x27;, action=&#x27;store_true&#x27;)\na = p.parse_args()\nr = a.number ** 2\nprint(f&#x27;{a.number}\uc758 \uc81c\uacf1: {r}&#x27; if a.verbose else r)<\/code><\/pre>\n<p><code>ArgumentParser<\/code>\uc5d0 \uc124\uba85\uc744 \ub123\uace0 <code>add_argument<\/code>\ub85c \uc785\ub825\uc744 \ub4f1\ub85d\ud574\uc694. <code>parse_args()<\/code>\ub294 \uc804\ub2ec\ub41c \ubb38\uc790\uc5f4\uc744 \uc815\uc758\uc5d0 \ub9de\uac8c \ud574\uc11d\ud574 \uc18d\uc131\uc73c\ub85c \ub3cc\ub824\uc918\uc694.[2] <code>action=&#x27;store_true&#x27;<\/code>\ub294 \ud574\ub2f9 \ud50c\ub798\uadf8\uac00 \uc788\uc744 \ub54c \ucc38\uc744 \uc800\uc7a5\ud574\uc694. \ucd9c\ub825\ubb38\uc740 <code>a.verbose<\/code>\ub9cc \uac80\uc0ac\ud558\ubbc0\ub85c <code>-q<\/code>\ub97c \uc8fc\uac70\ub098 \uc635\uc158\uc744 \uc0dd\ub7b5\ud588\uc744 \ub54c\uc758 \uacb0\uacfc\ub294 \uac19\uc544\uc694.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/dev-20261111-inline2.jpg\" alt=\"\uc815\uc218 4\ub97c \uc785\ub825\ud574 \uacb0\uacfc 16\uc744 \uc5bb\ub294 \uc608\" \/><\/figure>\n<h2>\ucda9\ub3cc\ud558\ub294 \uc635\uc158\uc744 \ud568\uaed8 \uc8fc\uba74 \uacc4\uc0b0 \uc804\uc5d0 \uba48\ucdb0\uc694<\/h2>\n<p><code>add_mutually_exclusive_group()<\/code>\uc73c\ub85c \ubb36\uc740 <code>-v<\/code>\uc640 <code>-q<\/code>\ub97c \ub3d9\uc2dc\uc5d0 \uc8fc\uba74 \ud30c\uc11c\uac00 \uc624\ub958\ub97c \ub0b4\uc694. \uc9c1\uc811 \uc2e4\ud589\ud55c <code>python3 example.py 4 -vq<\/code>\ub294 <code>argument -q\/--quiet: not allowed with argument -v\/--verbose<\/code>\ub97c \ucd9c\ub825\ud588\uace0, \uacc4\uc0b0 \uacb0\uacfc 16\uc740 \ucd9c\ub825\ud558\uc9c0 \uc54a\uc558\uc5b4\uc694. \uacf5\uc2dd \ud29c\ud1a0\ub9ac\uc5bc\ub3c4 \uc0c1\ud638 \ubc30\ud0c0 \uadf8\ub8f9\uc744 \uc11c\ub85c \ucda9\ub3cc\ud558\ub294 \uc635\uc158\uc744 \uc9c0\uc815\ud558\ub294 \ubc29\ubc95\uc73c\ub85c \uc18c\uac1c\ud574\uc694.[1]<\/p>\n<p>\uc635\uc158\uc744 \ud558\ub098\ub9cc \uc8fc\uba74 \uc815\uc0c1\uc801\uc73c\ub85c \uacc4\uc0b0\ud574\uc694. <code>python3 example.py 4 -v<\/code>\uc758 \uc2e4\ud589 \uacb0\uacfc\ub294 <code>4\uc758 \uc81c\uacf1: 16<\/code>, <code>python3 example.py 7 -q<\/code>\uc758 \uacb0\uacfc\ub294 <code>49<\/code>\uc600\uc5b4\uc694. \uccab \uba85\ub839\uc740 4\ub97c \ub450 \ubc88 \uacf1\ud55c 16\uc744 \uc124\uba85\uacfc \ud568\uaed8 \ud45c\uc2dc\ud558\uace0, \ub450 \ubc88\uc9f8\ub294 7\uc744 \ub450 \ubc88 \uacf1\ud55c 49\ub9cc \ubcf4\uc5ec \uc918\uc694. \ubc30\uce58 \uc791\uc5c5\uc5d0\uc11c \uacb0\uacfc \uc22b\uc790\ub97c \ub2e4\ub978 \ub3c4\uad6c\ub85c \ub118\uae38 \ub54c\ub294 \uc774\ub7f0 \uc870\uc6a9\ud55c \ucd9c\ub825\uc774 \uc720\uc6a9\ud574\uc694.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/dev-20261111-inline3.jpg\" alt=\"\uc790\uc138\ud55c \ucd9c\ub825\uacfc \uc870\uc6a9\ud55c \ucd9c\ub825 \uc635\uc158\uc758 \ucda9\ub3cc\" \/><\/figure>\n<h2>\ub3c4\uc6c0\ub9d0\uacfc \uc624\ub958 \ucd9c\ub825\uc73c\ub85c \uc785\ub825 \uaddc\uce59 \ud655\uc778\ud558\uae30<\/h2>\n<p>\uae30\ubcf8 \uc124\uc815\uc5d0\uc11c <code>-h<\/code> \ub610\ub294 <code>--help<\/code>\ub97c \uc785\ub825\ud558\uba74 \uc0ac\uc6a9\ubc95\uacfc \ub4f1\ub85d\ud55c \uc778\uc790\uac00 \ub098\uc640\uc694. \ub3c4\uc6c0\ub9d0 \ubb38\uc790\uc5f4\uc744 \ub530\ub85c \uc870\ub9bd\ud558\uc9c0 \uc54a\uace0 \uc778\uc790 \uc815\uc758\uc640 \uc124\uba85\uc744 \ud55c\uacf3\uc5d0\uc11c \uad00\ub9ac\ud560 \uc218 \uc788\uc5b4\uc694.[1] <code>help=&#x27;\uc815\uc218&#x27;<\/code>\ub97c \ubc14\uafb8\uba74 \uc22b\uc790 \uc778\uc790 \uc124\uba85\ub3c4 \ub2ec\ub77c\uc838\uc694.<\/p>\n<p>\uc0c1\ud638 \ubc30\ud0c0 \uadf8\ub8f9\uc774 \uac80\uc0ac\ud558\ub294 \uac83\uc740 \uc785\ub825\uc758 \uc870\ud569\uc774\uc5d0\uc694. \uc74c\uc218 \ud5c8\uc6a9 \uc5ec\ubd80\ub098 \uacb0\uacfc\ub97c \ud30c\uc77c\ub85c \uc800\uc7a5\ud558\ub294 \ub3d9\uc791 \uac19\uc740 \uc5c5\ubb34 \uaddc\uce59\uc740 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \ubcc4\ub3c4\ub85c \uc815\ud574\uc57c \ud574\uc694. \uc774 \uc608\uc81c\uc758 \uc22b\uc790\ud615 \ubcc0\ud658\uc740 \uc815\uc218\uc778\uc9c0 \ud310\ub2e8\ud558\ub294 \ub370 \uc4f0\uc774\uba70, \ud2b9\uc815 \ubc94\uc704\ub97c \uac15\uc81c\ud558\uc9c0\ub294 \uc54a\uc544\uc694.<\/p>\n<p>\uc815\uc218\uac00 \uc544\ub2cc \uac12\uc744 \ub123\ub294 <code>python3 example.py four<\/code>\ub3c4 \uc2dc\ud5d8\ud588\uc5b4\uc694. \ud504\ub85c\uadf8\ub7a8\uc740 <code>invalid int value: &#x27;four&#x27;<\/code>\uc640 \uc0ac\uc6a9\ubc95\uc744 \ucd9c\ub825\ud558\uace0 \uc885\ub8cc \ucf54\ub4dc 2\ub97c \ub3cc\ub824\uc92c\uc5b4\uc694. \uc815\uc0c1 \uc2e4\ud589\ud55c <code>4 -v<\/code>\uc640 <code>7 -q<\/code>\uc758 \uc885\ub8cc \ucf54\ub4dc\ub294 \uac01\uac01 0\uc774\uc5c8\uc5b4\uc694. \uc790\ub3d9\ud654 \uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c\ub294 \ucd9c\ub825\uacfc \ud568\uaed8 \uc885\ub8cc \ucf54\ub4dc\ub3c4 \ud655\uc778\ud574\uc57c \uc785\ub825 \uc624\ub958\ub97c \uacc4\uc0b0 \uacb0\uacfc\ub85c \ucc29\uac01\ud558\uc9c0 \uc54a\uc544\uc694.<\/p>\n<p>\ub3c4\uc6c0\ub9d0\uc758 \uccab \uc904\uc740 <code>usage: example.py [-h] [-v | -q] number<\/code>\uc608\uc694. \ub300\uad04\ud638 \uc548\uc758 <code>-h<\/code>\uc640 \ucd9c\ub825 \uc635\uc158\uc740 \uc0dd\ub7b5\ud560 \uc218 \uc788\uace0, \uc138\ub85c\uc904\ub85c \ub098\ub25c \ub450 \ucd9c\ub825 \uc635\uc158\uc740 \ud568\uaed8 \uc4f8 \uc218 \uc5c6\uc5b4\uc694. \ub05d\uc758 <code>number<\/code>\ub294 \ubc18\ub4dc\uc2dc \uc785\ub825\ud574\uc57c \ud574\uc694. <code>python3 example.py --help<\/code> \uacb0\uacfc\uc5d0\ub294 \uadf8 \uc544\ub798 <code>positional arguments<\/code>\uc640 <code>options<\/code>\uac00 \ub530\ub85c \ud45c\uc2dc\ub3fc, \ucf54\ub4dc\ub97c \uc5f4\uc9c0 \uc54a\uc544\ub3c4 \ud544\uc218 \uc785\ub825\uacfc \uc635\uc158\uc744 \uad6c\ubd84\ud560 \uc218 \uc788\uc5b4\uc694.<\/p>\n<h2>\uc785\ub825 \ub300\uc0c1\uc744 \ubc14\uafc0 \ub54c\ub294 \ud0c0\uc785\uacfc \uac80\uc0ac\ub3c4 \ud568\uaed8 \ubc14\uafd4\uc694<\/h2>\n<p>\uc778\uc790\ub97c \ub298\ub9ac\uac70\ub098 \uc785\ub825 \ub300\uc0c1\uc744 \ubc14\uafc0 \ub54c\ub294 \uc774\ub984\uacfc \uc124\uba85\uc744 \uc2e4\uc81c \uc791\uc5c5\uc5d0 \ub9de\ucdb0\uc57c \ud574\uc694. \uc22b\uc790 \ud55c \uac1c\ub97c \ubc1b\ub294 \uc774 \uc608\uc81c\ub97c \ud30c\uc77c \uacbd\ub85c\ub97c \ubc1b\ub294 \uc2a4\ud06c\ub9bd\ud2b8\ub85c \uace0\uce5c\ub2e4\uba74 <code>number<\/code> \ub300\uc2e0 \uc5ed\ud560\uc744 \ub4dc\ub7ec\ub0b4\ub294 \uc774\ub984\uc744 \uc4f0\uace0, <code>help<\/code>\uc5d0\ub3c4 \uae30\ub300\ud558\ub294 \uc785\ub825\uc744 \uc801\uc5b4\uc694. \uc815\uc218 \ubcc0\ud658\uc744 \uadf8\ub300\ub85c \ub450\uba74 \uacbd\ub85c \ubb38\uc790\uc5f4\uc744 \ucc98\ub9ac\ud558\uc9c0 \ubabb\ud558\ubbc0\ub85c \uc785\ub825 \ud0c0\uc785\ub3c4 \ubc14\uafd4\uc57c \ud574\uc694. \ud30c\uc77c\uc758 \uc874\uc7ac \uc5ec\ubd80\uc640 \uc811\uadfc \uad8c\ud55c\uc740 \uc774 \uc608\uc81c\uc5d0\uc11c \uac80\uc0ac\ud558\uc9c0 \uc54a\uc73c\ub2c8 \ubcc4\ub3c4 \uac80\uc0ac\uac00 \ud544\uc694\ud574\uc694.<\/p>\n<p>\uc624\ub958 \uba54\uc2dc\uc9c0\ub294 \uc5b4\ub5a4 \uc785\ub825\uc744 \uace0\uccd0\uc57c \ud558\ub294\uc9c0\ub3c4 \uc54c\ub824 \uc918\uc694. <code>-vq<\/code>\ub97c \ub123\uc5c8\uc744 \ub54c\ub294 \ucda9\ub3cc\ud55c \ub450 \uc635\uc158 \uc774\ub984\uc774 \ud568\uaed8 \ub098\ud0c0\ub0ac\uace0, \uc22b\uc790 \ub300\uc2e0 <code>four<\/code>\ub97c \ub123\uc5c8\uc744 \ub54c\ub294 <code>number<\/code>\uc640 \uc798\ubabb\ub41c \uac12\uc774 \ud45c\uc2dc\ub410\uc5b4\uc694. \uc2e4\ud328\ud55c \uba85\ub839\uc5d0\uc11c\ub294 \uba54\uc2dc\uc9c0\uac00 \uac00\ub9ac\ud0a4\ub294 \uc778\uc790\ubd80\ud130 \ud655\uc778\ud558\uba74 \ub3fc\uc694.<\/p>\n<p>\ucf54\ub4dc\ub97c \uc800\uc7a5\ud55c \ub4a4 <code>python3 example.py --help<\/code>\ub97c \uc2e4\ud589\ud574, \uc2a4\ud06c\ub9bd\ud2b8\ub97c \ubc1b\ub294 \uc0ac\ub78c\uc774 \uc5b4\ub5a4 \uc22b\uc790\ub97c \uc5b4\ub514\uc5d0 \ub123\uc5b4\uc57c \ud558\ub294\uc9c0 \ub3c4\uc6c0\ub9d0\ub9cc\uc73c\ub85c \uc54c \uc218 \uc788\ub294\uc9c0 \ud655\uc778\ud574 \ubcf4\uc138\uc694.<\/p>\n<h2>\ucc38\uace0 \ubb38\uc11c<\/h2>\n<p>\uc704\uce58 \uc778\uc790\uc640 \uc635\uc158, \ub3c4\uc6c0\ub9d0, \uc0c1\ud638 \ubc30\ud0c0 \uadf8\ub8f9\uc758 \uae30\ubcf8 \uc0ac\uc6a9\ubc95\uc740 \uacf5\uc2dd \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c, \ud30c\uc11c\uc640 \uc778\uc790 \uc815\uc758\uc758 \uc138\ubd80 \ub3d9\uc791\uc740 \ub77c\uc774\ube0c\ub7ec\ub9ac \ubb38\uc11c\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\uc5b4\uc694.<\/p>\n<p>[1] <a href=\"https:\/\/docs.python.org\/3\/howto\/argparse.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.python.org\/3\/howto\/argparse.html<\/a> (\uc870\ud68c 2026-11-11)<\/p>\n<p>[2] <a href=\"https:\/\/docs.python.org\/3\/library\/argparse.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.python.org\/3\/library\/argparse.html<\/a> (\uc870\ud68c 2026-11-11)<\/p>\n<p>\ud568\uaed8 \uc77d\uae30: <a href=\"https:\/\/danlabs.kr\/?p=1682\">Python subprocess.run \uc548\uc804\ud558\uac8c \uc4f0\uae30<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python argparse\ub97c \uc4f0\uba74 \uba85\ub839\uc904 \ub3c4\uc6c0\ub9d0\uacfc \uc785\ub825 \uac80\uc0ac\ub97c \ud55c\uacf3\uc5d0\uc11c \uc815\uc758\ud560 \uc218 \uc788\uc5b4\uc694. \uc815\uc218\ub97c \ubc1b\uc544 \uc81c\uacf1\uc744 \ucd9c\ub825\ud558\ub294 \uc608\uc81c\ub85c \uc704\uce58 \uc778\uc790\uc640 \ud50c\ub798\uadf8\ub97c \ub9cc\ub4e4\uace0, \uc815\uc218\uac00 \uc544\ub2cc \uc785\ub825\uc774\ub098 \ucda9\ub3cc\ud558\ub294 \uc635\uc158\uc744 \uacc4\uc0b0 \uc804\uc5d0 \ub9c9\uc544\uc694.<\/p>\n","protected":false},"author":1,"featured_media":2339,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-1951","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"featured_image_urls":{"full":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept.webp",1536,1024,false],"thumbnail":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept-150x150.webp",150,150,true],"medium":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept-300x200.webp",300,200,true],"medium_large":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept-768x512.webp",640,427,true],"large":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept-1024x683.webp",640,427,true],"1536x1536":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept.webp",1536,1024,false],"2048x2048":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept.webp",1536,1024,false],"morenews-large":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept.webp",825,550,false],"morenews-medium":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept.webp",590,393,false],"danlabs-list-small":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept-366x190.webp",366,190,true],"danlabs-list-retina":["https:\/\/danlabs.kr\/wp-content\/uploads\/2026\/11\/python-argparse-validation-exclusive-options-1951-concept-1464x760.webp",1464,760,true]},"author_info":{"display_name":"DanLABs","author_link":"https:\/\/danlabs.kr\/author\/hello-danlabs-kr"},"category_info":"<a href=\"https:\/\/danlabs.kr\/?cat=19\" rel=\"category\">\uac1c\ubc1c<\/a>","tag_info":"\uac1c\ubc1c","comment_count":"2","_links":{"self":[{"href":"https:\/\/danlabs.kr\/index.php?rest_route=\/wp\/v2\/posts\/1951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/danlabs.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/danlabs.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/danlabs.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/danlabs.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1951"}],"version-history":[{"count":3,"href":"https:\/\/danlabs.kr\/index.php?rest_route=\/wp\/v2\/posts\/1951\/revisions"}],"predecessor-version":[{"id":2364,"href":"https:\/\/danlabs.kr\/index.php?rest_route=\/wp\/v2\/posts\/1951\/revisions\/2364"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/danlabs.kr\/index.php?rest_route=\/wp\/v2\/media\/2339"}],"wp:attachment":[{"href":"https:\/\/danlabs.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/danlabs.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/danlabs.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}