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

 
 

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

Submitted by:  -Deleted Account- <steele>
Submitted on:  Mon 24 Jan 2011 01:31:25 PM UTC  
 
Category:  Feature request Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Add a New Comment (Rich 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"))

-Deleted Account- <steele>

 

(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 rshann (Posted a comment)
  • -email is unavailable- added by steele (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-25 rshann StatusNeed Info => Fixed
        Open/ClosedOpen => Closed
    2011-01-26 rshann StatusNone => Need Info

    Back to the top


    Powered by Savane 3.5