# \#command-line

**URL:** https://discuss.python.org/tag/command-line/81.md

[Latest](https://discuss.python.org/latest.md) · [Categories](https://discuss.python.org/categories.md) · [Tags](https://discuss.python.org/tags.md)

---

## [Provide a better UX when \`python -c "..." trailing args\` eats trailing arguments](https://discuss.python.org/t/provide-a-better-ux-when-python-c-trailing-args-eats-trailing-arguments/109598)

<div class="topic-metadata">

**Author:** [@nmay231](https://discuss.python.org/u/nmay231)\
**Replies:** 14\
**Last updated:** [October 23, 2026, 6:22am UTC](https://discuss.python.org/t/provide-a-better-ux-when-python-c-trailing-args-eats-trailing-arguments/109598 "2026-10-23T06:22:05Z")

</div>

TLDR; I assumed that python -c "..." && other-command would either work or fail with an error, but it failed silently. I would like a better experience than that to avoid other users wasting as much time as I did. (feel …

---

## [Argparse: Allow the addition of instantiated parsers as subparsers](https://discuss.python.org/t/argparse-allow-the-addition-of-instantiated-parsers-as-subparsers/105198)

<div class="topic-metadata">

**Author:** [@rperezsoto](https://discuss.python.org/u/rperezsoto)\
**Replies:** 0\
**Last updated:** [December 4, 2025, 12:06pm UTC](https://discuss.python.org/t/argparse-allow-the-addition-of-instantiated-parsers-as-subparsers/105198 "2025-12-04T12:06:29Z")

</div>

Idea Add a new method append\_parser to argparse.\_SubParsersAction to allow the addition of already instantiated parsers as subparsers. Preferred Feedback Is this type of functionality, creating a command line parser fr…

---

## [How to create a Windows command line application and its installer from wheels](https://discuss.python.org/t/how-to-create-a-windows-command-line-application-and-its-installer-from-wheels/76136)

<div class="topic-metadata">

**Author:** [@paugier](https://discuss.python.org/u/paugier)\
**Replies:** 17\
**Last updated:** [January 11, 2025, 7:04am UTC](https://discuss.python.org/t/how-to-create-a-windows-command-line-application-and-its-installer-from-wheels/76136 "2025-01-11T07:04:05Z")

</div>

Let’s say that we have Windows wheels for a CLI. To take a simple but realistic example, one can consider the CLI black (a Python console-script entry point) and the wheels that are installed with black\[jupyter\]. My rea…

---

## [Creating project files from a package's command line interface](https://discuss.python.org/t/creating-project-files-from-a-packages-command-line-interface/71212)

<div class="topic-metadata">

**Author:** [@wigging](https://discuss.python.org/u/wigging)\
**Replies:** 10\
**Last updated:** [November 23, 2024, 4:40pm UTC](https://discuss.python.org/t/creating-project-files-from-a-packages-command-line-interface/71212 "2024-11-23T16:40:57Z")

</div>

I made a Python package that is a static site generator with a command line interface to build the site and perform other operations. I would like to add a CLI command that generates a new project that is used to create …

---

## [Unable to start django server via command line](https://discuss.python.org/t/unable-to-start-django-server-via-command-line/66406)

<div class="topic-metadata">

**Author:** [@SCGhaith](https://discuss.python.org/u/SCGhaith)\
**Replies:** 0\
**Last updated:** [October 2, 2024, 1:01pm UTC](https://discuss.python.org/t/unable-to-start-django-server-via-command-line/66406 "2024-10-02T13:01:53Z")

</div>

hi, im quite new to python and django in general, and im trying to follow their Own tutorial, but im running into an issue when trying to run ‘py manage.py runserver’ and keep ending up with an error saying ‘Unable to cr…

---

## [Setting log level based on --quiet, --debug flags](https://discuss.python.org/t/setting-log-level-based-on-quiet-debug-flags/55570)

<div class="topic-metadata">

**Author:** [@abessman](https://discuss.python.org/u/abessman)\
**Replies:** 4\
**Last updated:** [June 13, 2024, 1:42am UTC](https://discuss.python.org/t/setting-log-level-based-on-quiet-debug-flags/55570 "2024-06-13T01:42:23Z")

</div>

My application writes a lot of log messages at different levels, mainly INFO and DEBUG. Some of these may be printed to stdout, depending on the command line flags --quiet and --debug. If --quiet is passed, ERROR-level…

---

## [Named arguments in CLI application](https://discuss.python.org/t/named-arguments-in-cli-application/55352)

<div class="topic-metadata">

**Author:** [@abessman](https://discuss.python.org/u/abessman)\
**Replies:** 5\
**Last updated:** [June 10, 2024, 10:58am UTC](https://discuss.python.org/t/named-arguments-in-cli-application/55352 "2024-06-10T10:58:54Z")

</div>

I’m writing a command line application, and have been reading up on best practices. In particular, I’ve come across these two recommendations, which are giving me some trouble: “If you’ve got two or more arguments for …
