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

 
 

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

Submitted by:  bryan newbold <bnewbold>
Submitted on:  Thu 22 Jan 2009 07:57:04 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature request
Status: FixedPrivacy: Public
Assigned to: Matt Birkholz <mhb>Originator Name: 
Open/Closed: Closed
Keywords: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 Apr 2009 04:01:22 AM UTCmhbStatusNone=>Fixed
      Assigned toNone=>mhb
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1