---
title: "Discussion on \"Python Command Line Arguments: Part 1: argv\" | Hashnode"
description: "Discussion on \"Python Command Line Arguments: Part 1: argv\". Command-line arguments. What are they, really? Why would you ever use them?\nCommand-line arguments are a way of reducing hard-coded variables in a program. In this case, if your program takes in user input every now and then and does something to it,..."
url: "https://hashnode.com/posts/python-command-line-arguments-part-1-argv/5dbc5fe4aaa616c464d62a2d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python Command Line Arguments: Part 1: argv](https://thegreencodes.com/python-command-line-arguments-part-1-argv?utm_source=hashnode&utm_medium=feed)

Command-line arguments. What are they, really? Why would you ever use them? Command-line arguments are a way of reducing hard-coded variables in a program. In this case, if your program takes in user input every now and then and does something to it,...

Nov 1, 2019 · thegreencodes.com  
Updated Mar 16, 2020  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#command-line](https://hashnode.com/tag/command-line)
-   [#terminal](https://hashnode.com/tag/terminal)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[Marvin Kweyu](https://hashnode.com/@Marvin)

@Marvin · Earth

  
[View profile](https://hashnode.com/@Marvin)

Senior Backend Engineer | Distributed Systems & Platform Engineering

Senior Backend Engineer | Distributed Systems &amp; Platform Engineering

## Responses 1

Markdown supported · ⌘↵ to post

[Paddy McCarthy](https://hashnode.com/@Paddy3118)

[Nov 2, 2019](https://hashnode.com/posts/python-command-line-arguments-part-1-argv/5dbc5fe4aaa616c464d62a2d/comment/5dbd601caaa616c464d62ce6)

Please, please, please include docopt in your series. I find it a great way to handle arguments.

[Marvin Kweyu](https://hashnode.com/@Marvin)

[Nov 3, 2019](https://hashnode.com/posts/python-command-line-arguments-part-1-argv/5dbc5fe4aaa616c464d62a2d/comment/5dbd601caaa616c464d62ce6#reply-5dbe99e6aaa616c464d630ed)

Sure thing Paddy! Appreciate the feedback. I'll give it a bonus section.
