nagyistoce / open-source-spin-compiler

Automatically exported from code.google.com/p/open-source-spin-compiler
0 stars 0 forks source link

Need online help feature. #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the simplest form one might expect a program to print usage and parameter 
information if a sufficient number of arguments is not found.

This approach keeps us from worrying about whether we look for /param or 
-option --longoption, etc....

BSTC offers an example that is pretty easy to follow.

$ bstc
Brads Spin Tool Compiler v0.15.3 - Copyright 2008,2009 All rights reserved
Compiled for i386 Linux at 08:17:46 on 2009/07/20
Program Usage :- bstc (Options) Filename[.spin]
 -a            - Create Propeller object archive zipfile
 -b            - Write .binary file
 -c            - Write .dat file for C-Compiler (Drops a <filename.dat> file)
 -d <device>   - Device to load to (Default : )
 -D <define>   - Define a pre-processor symbol (may be used multiple times)

etc, etc....

Original issue reported on code.google.com by jsden...@gmail.com on 21 Jan 2012 at 4:50

GoogleCodeExporter commented 9 years ago
I'll handle this one.

Original comment by reltham on 21 Jan 2012 at 5:29

GoogleCodeExporter commented 9 years ago
I've put a basic one of these in, but since I have no command line options its 
just a one liner thing. I'm leaving this here as a reminder to do this more 
properly when I add options.

Original comment by reltham on 21 Jan 2012 at 11:03

GoogleCodeExporter commented 9 years ago
The change for this is done now.

Original comment by reltham on 22 Jan 2012 at 9:14