Displaying 20 results from an estimated 1000 matches similar to: "optparse::parse_args, using equals sign or not"
2008 Jan 16
3
Application generation
Hi All,
Is anyone seeing this?
$ merb merb_paste
/usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:69:in
`parse_args'': uninitialized constant Merb::RELEASE (NameError)
from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize''
from /usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:67:in
`new''
from
2011 Dec 07
3
[Bug 1956] New: sftp segfaults in parse_args() when argv[0] is NULL
https://bugzilla.mindrot.org/show_bug.cgi?id=1956
Bug #: 1956
Summary: sftp segfaults in parse_args() when argv[0] is NULL
Classification: Unclassified
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sftp
2009 Sep 11
4
[LLVMdev] LLVM-GCC & GV zeroinitializers, 2.5 vs 2.6.
Hello folks,
I have a small piece of C code written like this:
typedef struct {
char a;
int b;
int c;
} foo;
foo myFoo[5] = {{0}};
With llvm-gcc 2.5, I get the following IR:
%struct.foo = type { i8, i32, i32 }
@myFoo = global [5 x %struct.foo] zeroinitializer, align 32
With the current 2.6, I get this:
%0 = type { i8, [11 x i8] }
2011 Jul 23
1
call a function with explicitly not setting an argument
Is there a way to call a function, and explicitly set an argument to 'not
specified'? My situation is the following. I have a function which passes on
most of its arguments to another function. The second function, myfun2,
serializes all arguments and is out of my control.
myfun <- function(...){
return(myfun2(...));
}
now, the value for arguments of myfun are stored in variables.
2012 Feb 09
1
Autorun Picks Up Options
Hi,
I was trying to use the autorun feature of rspec but noticed that when I
run the command to kick off the ruby scripts it picks up the options that I
give to the command.
''myRubyBin -j optionValue''
This then fails with this error,
/usr/lib/ruby/1.8/optparse.rb:1448:in `complete''
:
invalid option: -j
(
OptionParser::InvalidOption
)
from
2007 Mar 01
4
RC1, Rails, and problems with multiple options in spec.opts
I am having inconsistent output with multiple options in the
spec.opts file. I can, for instance, pass --color or --colour, or,
separately, use --drb. But when combining them I get:
/opt/local/lib/ruby/1.8/optparse.rb:1381:in `complete'': invalid
option: --options --color --drb (OptionParser::InvalidOption)
from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `catch''
2011 May 26
1
Is it possible to define a function's arguments via a wildcard in 'substitute()'?
Dear List,
just out of pure curiosity: is it possible to define a function via
'substitute()' such that the function's formal arguments are specified
by a "wildcard" that is substituted when the expression is evaluated?
Simple example:
x.args <- formals("data.frame")
x.body <- expression(
out <- myArg + 100,
return(out)
)
expr <-
2009 Sep 11
0
[LLVMdev] LLVM-GCC & GV zeroinitializers, 2.5 vs 2.6.
Hello Julien,
I think the reason for the change was because there is processor context information stored in the type in 2.6. The reason it's there is to support multicore JIT architecture.
--Sam
----- Original Message ----
> From: Julien Lerouge <jlerouge at apple.com>
> To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
> Sent: Thursday, September 10, 2009
2002 May 18
5
Length of a string
Hi,
Suppose I have created something like this in R:
foo <- "myfoo"
and I want to find out the number of character in foo (in other words, R
should return 5 since "myfoo" has 5 charactors.
How can I do it? I tried:
length(foo)
but it returned 1.
Cheers,
Kevin
------------------------------------------------------------------------------
Ko-Kang Kevin Wang
2007 Nov 28
6
textmate bundle
Does anyone else have issues running rspec textmate bundle? I''ve got
revision 2997, but the blasted thing just won''t run.
It is checked out to my /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle
When it runs I get the below error...
"textmate" is not a valid class name
2007 Jan 12
2
spec_ui problems
While looking into spec_ui, I decided to run the examples.
The watir example works a little, but always chokes on the ''better
than fudge'' spec (failure output below). Also, is there any command
to pause the "browser"? If my connection slows, the test gets out of
whack.
The selenium example fails right away (output below). I do have the
0.9.0 selenium-rc
2005 Aug 25
1
"couldn't find function" error message in R 2.1.1
Dear R-help,
I have a home-made package works perfectly under R 1.9.1. Now I'm trying to
port it to R > 2.0. So I rebuild the package under R 2.1.1. It installs and
loads OK. But when I try to call some functions "myfoo" in this package, it
returns error message: "Couldn't find function myfoo". I checked all
available manuals, and didn't find any specific
2011 Feb 26
0
[LLVMdev] LLVM IR Type System Rewrite
On Sat, Feb 26, 2011 at 10:25 PM, Chris Lattner <clattner at apple.com> wrote:
> Several people have been proding me to write up my thoughts on how to fix the IR type system for LLVM 3.0. Here are some (fairly stream of conscious) thoughts on the matter:
> http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt
>
> Comments welcome!
So struct types would unique by name. How
2009 Sep 14
2
[PATCH node-image] add livecd-iso-to-iscsi script to support iscsi root booting setup
This enables the ability to take the ovirt-node-image iso and deploy it to an iscsi disk. It also provides a sample pxe configuration for booting based on the iscsi root device. Includes support for user/password as well as reverse chap user/password.
---
Makefile.am | 1 +
livecd-iso-to-iscsi | 201 ++++++++++++++++++++++++++++++++++++++++++++++
ovirt-node-image.spec.in |
2017 Oct 20
1
Rscript Bug Report (improper parsing of [args])
Hi,
A user of my `optparse` package discovered a bug in Rscript's parsing of
[args]. (https://github.com/trevorld/optparse/issues/24)
I've reproduced the bug on my machine including compiling and checking the
development version of R. I couldn't find a mention of it in the Bug
Tracker or New Features.
Can be minimally reproduced on the UNIX command line with following
commands:
2012 Mar 28
2
getopt does not work as expected!
I have the following script (also attached):
#!/usr/bin/Rscript
spec=matrix(c(
'verbose', 'v', 1, "integer",
'help' , 'h', 0, "logical"
),ncol=4, byrow=TRUE)
spec.dim=dim(spec)
spec.opt.long=spec[,1]
spec.opt.short=spec[,2]
spec.opt.l <- spec.dim[1]
infile <- "test.dat"
args=commandArgs(TRUE); l=length(args)
self =
2009 Mar 31
7
[Cucumber] Running single feature from command line
I am using Cucumber 0.2.3 and am having problems running a single
feature. In particular, the cucumber Textmate bundle was not working
so I traced it back and discovered that I could not run single files
or features from the command line either. My setup has the following
line in cucumber.yml
default: -r features/support/env.rb -r features/support/plain.rb -r
features/steps
2010 Feb 12
1
Darwinian software development and the library function
Hi all,
Legend has it, that polite R programmers don't overwrite, say, the
print function.
However, this seems quite un-Darwinian to me (especially given that I
don't want to call all my arguments x and y).
I might want a function print.foo (myfoo, ...).
So I decided to be very impolite (in one of my packages) and overwrite
a few standard generics.
Plus, to the best of my knowledge it
2014 Mar 21
0
[PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics
This patch adds simple python to display vhost satistics of vhost, the codes
were based on kvm_stat script from qemu. As work function has been recored,
filters could be used to distinguish which kinds of work are being executed or
queued:
vhost statistics
vhost_virtio_update_used_idx 1215215 0
vhost_virtio_get_vq_desc 1215215 0
2018 May 21
1
S4 class slot type S4 class
All,
I am considering creating an S4 class whose slots (2) are both S4 classes. ?Since an S4 slot can be an S3 class I figure this can be done. ?However, the correct syntax of which I am unsure. ?Reviewing the docs I have come to the following conclusion:
SetClass('myfoo',
? ? ? ? ? ? ? ? ? slots = (foo1, foo2))
Without a type I believe each slot is .Data. ?A get method on the above