bugDenemo - Bugs: bug #32228, Scheme commandline args or:...

 
 

bug #32228: Scheme commandline args or: forward unknown command-line arguments to scheme

Submitted by:  Nils Gey <steele>
Submitted on:  Mon 24 Jan 2011 01:31:25 PM UTC  
 
Category: Feature requestSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri 28 Jan 2011 09:29:42 AM UTC, comment #2:

I have re-arranged the startup so this is now possible. To make the transition I can arrange that the command line is not processed in C but passed to scheme depending on the name used to invoke denemo. Or ...???

Richard Shann <rshann>
Project Administrator
Wed 26 Jan 2011 04:32:44 PM UTC, comment #1:

I wonder if we should hand the whole of the command line processing over to scheme?
I am not exactly sure how it would work, but, roughly, denemo starts initializes scheme runs a procedure (defined in denemo.scm) with the command line as the parameter.
That procedure calls prints out the help and exits or calls d-Open etc, etc....

Richard Shann <rshann>
Project Administrator
Mon 24 Jan 2011 01:31:25 PM UTC, original submission:

Denemo does know a certain amount of command line arguments like version, help or a file.

It would be great if we had

a) a commandline argument for scheme variables like --scheme abc def geh --other arg

or

b) forward all unknown --argument

to a top-level scheme variable cmdarg_[name] which is just #t from there on. It does no harm but can be useful:

This would be a way to trigger certain behaviour for Denemo, most obvious setting parameters for Denemos GUI or other options.

Or we could use it for something like --verbose to enable debug output for scripts, which would have to do:
(if cmdarg_verbose (display "xy"))

Nils Gey <steele>

 

(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 rshann (Posted a comment)
  • -unavailable- added by steele (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
    Thu 25 Apr 2013 07:23:35 AM UTCrshannStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Wed 26 Jan 2011 04:32:44 PM UTCrshannStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup