command line Switch name idioms

Switch name idioms

Over the years, a number of conventions have arisen over the best letters to assign to common operations that crop up again and again in program design. This list attempts to codify existing practices (updates welcomed). Use these conventions and people will find your programs easy to learn.

-a Process everything (all).
-d Debug mode. Print out lots of stuff.
-h Help. Print out a brief summary of what the script does and what it expects.
-i Input file, or include file
-l Name of logfile
-o Name of output file
-q Quiet. Print out nothing.
-v Verbose. Print out lots of stuff.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s