packaging a binary that can take command line arguments

102 views
Skip to first unread message

David West

unread,
Jan 30, 2015, 1:19:57 PM1/30/15
to ruby...@googlegroups.com
I have a ruby script that uses the ARGV array for command line input via arguments. How can I package it with OCRA?

Lars Christensen

unread,
Feb 1, 2015, 3:57:13 AM2/1/15
to ruby...@googlegroups.com
Like any other script. Ocra will pass command line arguments to the script at run time. 

You can pass arguments to the script at build time by writing them after a double-dash:

  ocra script.rb -- --some-option-for-script-rb

These will be recorded and passed every time you run the executable, in addition to other flags the user may pass.


On Fri, Jan 30, 2015 at 7:19 PM, David West <david....@gmail.com> wrote:
I have a ruby script that uses the ARGV array for command line input via arguments. How can I package it with OCRA?

--
You received this message because you are subscribed to the Google Groups "OCRA One-Click Application Builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-ocra+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages