Handling of command line arguments

Category: Python - Miscellaneous

This script handles arguments for small scripts that need to: - read some command line options - read some command line positional arguments - iterate over all lines of some files given on the command line, or stdin if none given - give usage message if positional arguments are missing - give usage message if input files are missing and stdin is not redirected Date: 16 May, 2012


Command Line - File Management - Stdin Options - Command - Line - File

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Alert Manager was created to run an alert command, monitor the status of that command's output, and guarantee that if something goes wrong it won't go unnoticed.

developer Developer: Brandon Zehm
license License: Freeware
operating systems Operating System: linux, freebsd, osx, sun


Provides a basic structure for a command line application.

developer Developer: rubyforge.org
license License: Freeware
operating systems Operating System: All


This will receive the path to a PDF as a command line argument, generate multiple thumbnails at various sizes, then ftp them to various locations.

developer Developer: phpbuilder.com
license License: Freeware
operating systems Operating System: All


Command-line progress indicators - just some proof-of-concept snippets.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


A demonstration of using Bash or Cmd.

developer Developer: dreamincode.net
license License: Freeware
operating systems Operating System: Windows, Linux, BSD, Solaris


This will combine 2 pictures.

developer Developer: phpbuilder.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Argtable is an ANSI C library for parsing GNU style command line options.

developer Developer: SourceForge.net
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


This script is a generator that does what os.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script allows you to manage a list of files, directories and other file system objects.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All