bugMIT/GNU Scheme - Bugs: bug #25382, --version, --help command line...

 
 

bug #25382: --version, --help command line options

Submitter:  bryan newbold <bnewbold>
Submitted:  Thu 22 Jan 2009 07:57:04 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature request
Status:  Fixed Privacy:  Public
Assigned to:  mhb Originator Name: 
Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 08 Mar 2009 02:18:00 AM UTC, comment #3: 

Oops, I saw that message and promptly forgot about it.  (It would be nice if Savannah's bug tracker read email, rather than just sending it when someone submits replies on the web interface.)

Taylor R. Campbell <riastradh>
Group Member
Sun 08 Mar 2009 01:22:18 AM UTC, comment #2: 

Matt Birkholz emailed out a patch that sounded good to me:
http://lists.gnu.org/archive/html/bug-mit-scheme/2009-01/msg00002.html

I think just the microcode version would be sufficient and the band code is just gravy. It might be better to stick with just microcode flags to help debug issues with band files; eg if running 'scheme' throws an error, most people would check 'scheme --help', which would again throw an error if the band was being checked. Of course then they could just hit the man file. The version call is the kind of thing that would get called from a makefile or foreign interface handler, so quickly responding with the microcode answer would be nice, but the band file version is probably what somebody would be looking for anyways.

I haven't had the chance to recompile to check the patch but i'll post back here after I do; it certainly seems to meet my needs.

bryan newbold <bnewbold>
Sun 08 Mar 2009 12:15:40 AM UTC, comment #1: 

Do you want version and help strings for just the microcode, which is the OS-dependent part of MIT Scheme that is written in C; or do you want the microcode to launch the Scheme code in the band you specify with --band (or the default band), which may not just print a version number or help string and exit?  Probably it would be best to have different options for these two different operations; any suggestions for names?

Taylor R. Campbell <riastradh>
Group Member
Thu 22 Jan 2009 07:57:04 PM UTC, original submission:  

The --version and --help options are pretty standard unix flags and can be useful for scripting, package management, debugging, etc. The information already exists in the man pages so I don't think it would be too hard to tack on...

Could be implemented either in the microcode or scheme? For version, something like the usual banner:

$ mit-scheme --version
MIT/GNU Scheme running under GNU/Linux

Copyright 2006 Massachusetts Institute of Technology.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Image saved on Wednesday September 20, 2006 at 10:31:51 PM
  Release 7.7.90.+ || Microcode 14.17 || Runtime 15.6 || SF 4.41 || LIAR 4.117
  Edwin 3.116

And --help could show the command line options listed in the man files.

Let me know if you would like a patch?

bryan newbold <bnewbold>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mhb (Updated the item)
  • -email is unavailable- added by riastradh (Posted a comment)
  • -email is unavailable- added by bnewbold (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-25 mhb StatusNone Fixed
        Assigned toNone mhb
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code