<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkulum.net/w/index.php?action=history&amp;feed=atom&amp;title=Software_Development%2FCommand_Line_Help</id>
	<title>Software Development/Command Line Help - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkulum.net/w/index.php?action=history&amp;feed=atom&amp;title=Software_Development%2FCommand_Line_Help"/>
	<link rel="alternate" type="text/html" href="https://www.thinkulum.net/w/index.php?title=Software_Development/Command_Line_Help&amp;action=history"/>
	<updated>2026-05-05T04:54:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://www.thinkulum.net/w/index.php?title=Software_Development/Command_Line_Help&amp;diff=391&amp;oldid=prev</id>
		<title>Andy Culbertson: Added the article.</title>
		<link rel="alternate" type="text/html" href="https://www.thinkulum.net/w/index.php?title=Software_Development/Command_Line_Help&amp;diff=391&amp;oldid=prev"/>
		<updated>2019-02-22T05:48:02Z</updated>

		<summary type="html">&lt;p&gt;Added the article.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Traditional command-line programs are run from the OS command line, and their help statement is called a usage message. On Unix-like OSes they may also have a man (manual) page. I'll talk about man pages in the &amp;quot;Project documentation&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
Python has the &amp;lt;code&amp;gt;cmd&amp;lt;/code&amp;gt; module for creating a command-line interpreter within your program, and each of your program's commands can also have a help message, contained in the command function's docstring.&lt;br /&gt;
&lt;br /&gt;
My snippets for scripts and command functions will include outlines for usage and help messages.&lt;br /&gt;
&lt;br /&gt;
== Usage message ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Usage_message Usage message - Wikipedia]&lt;br /&gt;
* [http://courses.cms.caltech.edu/cs11/material/general/usage.html How to write usage statements - CS 11 - Caltech]&lt;br /&gt;
* [http://stackoverflow.com/questions/17314872/shell-scripts-conventions-to-write-usage-text-for-parameters Shell scripts: conventions to write usage text for parameters? - Stack Overflow]&lt;br /&gt;
* [https://github.com/docopt/docopt docopt (Python implementation)] - A library that checks the user's command line arguments by parsing the script's usage message. Even if you're not using docopt, it gives you a convenient set of conventions for formatting usage messages.&lt;br /&gt;
* [https://docs.python.org/3/library/argparse.html argparse - Python.org] - Moves in the opposite direction from docopt, generating a usage message from a specification.&lt;br /&gt;
&lt;br /&gt;
== Command help ==&lt;br /&gt;
&lt;br /&gt;
I haven't found any conventions for &amp;lt;code&amp;gt;cmd&amp;lt;/code&amp;gt; help text, and the examples I've seen have been free-form descriptions. Maybe it would make sense to treat each command as a separate program and use usage message conventions for its help.&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Essays]]&lt;br /&gt;
[[Category:Developing]]&lt;/div&gt;</summary>
		<author><name>Andy Culbertson</name></author>
	</entry>
</feed>