I don't get this error with the version I'm using. What version do you have?<br><br>From the error message, it looks like pkg might be confused about what usage string to give you for the combination of -n and --help operands with the update subcommand or its image-update alias. I shouldn't think you need to use -n if you want --help. What happens if you use just the latter?<br>
<br>bayard@screendoor:/data/projects/userland/oi-build/components 08:07:54 [3464]$ pkg version<br>90c532b69592+<br>bayard@screendoor:/data/projects/userland/oi-build/components 08:08:26 [3465]$ pkg list pkg<br>NAME (PUBLISHER) VERSION IFO<br>
package/pkg (oi-experimental) 0.5.11-1.1 i--<br>bayard@screendoor:/data/projects/userland/oi-build/components 08:08:59 [3467]$ pkg image-update -n --help<br>Usage:<br> pkg update [-fnvq] [-g path_or_uri ...] [--accept] [--licenses]<br>
[--no-be-activate] [--no-index] [--no-refresh] [--deny-new-be |<br> --require-new-be] [--be-name name] [--reject pkg_fmri_pattern ...]<br> [pkg_fmri_pattern ...]<br><br><div class="gmail_quote">
On Sat, Feb 11, 2012 at 6:37 AM, Lou Picciano <span dir="ltr"><<a href="mailto:loupicciano@comcast.net">loupicciano@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div style="font-size:12pt;font-family:Verdana">Unsure where we'd want this reported - so... (thanks to those of you working hard on pkg5, btw!)<br><br># pkg image-update -n --help<br><br>Usage:<br>Traceback (most recent call last):<br>
File "/usr/bin/pkg", line 4233, in handle_errors<br> __ret = func(*args, **kwargs)<br> File "/usr/bin/pkg", line 4150, in main_func<br> usage(retcode=0, full=False, cmd=subcommand)<br> File "/usr/bin/pkg", line 248, in usage<br>
print_cmds([cmd], combined)<br> File "/usr/bin/pkg", line 235, in print_cmds<br> cmd)<br>ValueError: Unable to find usage str for image-update<br><br><br>pkg: This is an internal error. Please let the developers know about this<br>
problem by filing a bug at <a href="http://defect.opensolaris.org" target="_blank">http://defect.opensolaris.org</a> and including the<br>above traceback and this message. The version of pkg(5) is '4d886e93dafc'.<br>
</div></div><br>_______________________________________________<br>
oi-dev mailing list<br>
<a href="mailto:oi-dev@openindiana.org">oi-dev@openindiana.org</a><br>
<a href="http://openindiana.org/mailman/listinfo/oi-dev" target="_blank">http://openindiana.org/mailman/listinfo/oi-dev</a><br>
<br></blockquote></div><br>