1. Idea for documentation makeover

  • An idea for a documentation makeover. This look can be achieved without rewriting the current documentation.

cmd_parse

parses command line options and optionally calls procedures based on these options.

cmd_parse( S1opts , O2parse_options = {} , S3cmds = command_line() )

include cmdline.e 
namespace cmdline 
public function 
Arguments:

S1 opts
a sequence of records that define the various command line switches and options that are valid for the application: See Comments: section for details
O2 parse_options = {}
an optional list of special behavior modifiers: See Parse Options section for details
S3 cmds = command_line()
an optional sequence of command line arguments. If omitted the output from command_line is used.



  • This is how the documentation looks currently.

cmd_parse

include cmdline.e 
namespace cmdline 
public function cmd_parse(sequence opts, object parse_options = {}, 
        sequence cmds = command_line()) 

parses command line options and optionally calls procedures based on these options.

Parameters:
  1. opts : a sequence of records that define the various command line switches and options that are valid for the application: See Comments: section for details
  2. parse_options : an optional list of special behavior modifiers: See Parse Options section for details
  3. cmds : an optional sequence of command line arguments. If omitted the output from command_line is used.


  • Any ideas or suggestions?

TOM

new topic     » topic index » view message » categorize

2. Re: Idea for documentation makeover

_tom said...
  • An idea for a documentation makeover. This look can be achieved without rewriting the current documentation.

cmd_parse

parses command line options and optionally calls procedures based on these options.

cmd_parse( S1opts , O2parse_options = {} , S3cmds = command_line() )

include cmdline.e 
namespace cmdline 
public function 
Arguments:

S1 opts
a sequence of records that define the various command line switches and options that are valid for the application: See Comments: section for details
O2 parse_options = {}
an optional list of special behavior modifiers: See Parse Options section for details
S3 cmds = command_line()
an optional sequence of command line arguments. If omitted the output from command_line is used.


  • Any ideas or suggestions?

I'm not a fan of the O2 / subscript stuff. I guess those are stand ins for object and sequence? What happens when a parameter is a UDT?

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: Idea for documentation makeover

The O S A I ( or o s a i ) are like the old RDS documents. (A bit of nostalgia here.)

The advantage of this style is it is easier to put the entire signature on one line.

If the parameter list contains a typedef then it could look like:

public function seek(file_number fn, file_position pos)

possible alternative:

public function seek( file_numberfn , file_positionpos )

Again, this does not require a rewrite of the documentation.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Idea for documentation makeover

_tom said...

The O S A I ( or o s a i ) are like the old RDS documents. (A bit of nostalgia here.)

The advantage of this style is it is easier to put the entire signature on one line.

If the parameter list contains a typedef then it could look like:

public function seek(file_number fn, file_position pos)

possible alternative:

public function seek( file_numberfn , file_positionpos )

Again, this does not require a rewrite of the documentation.

The style of documentation "makeover" you are recommending may make it easier to put a "signature" on one line, but the current method of documentation is much easier to understand. Euphoria "beginners" may be put off by having to learn a notational code in order to understand the language documentation.

Indeed, it seems that the goal of your documentation style is not to improve the quality of the documentation in any way, but only to symbolically compress descriptive statements.

If it is not broke, don't fix it.

Kenneth Rhodes

new topic     » goto parent     » topic index » view message » categorize

5. Re: Idea for documentation makeover

There *must* be better ways to waste your time.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu