Dennis Clarke wrote:
> The placement of the -v parameter to pkg should not be position
> depenedant. So long as it does not get inthe way of a parameter that
> requires some data/tag/token after it like -R thus :

> -bash-3.2# pkg -R /mnt image-update -v
> 
> this is seen as acceptable .. but "pkg -v -R /mnt image-update" is not.
> 
> The -v option is valid for image-update and thus it is acceptable as
> an option. The order of placement on the command line should not
> matter.

   Correct, the order of options on the command line shouldn't matter.
   pkg options can appear in any order.  subcommand options can appear
   in any order.  They aren't the same thing, though, and can't be
   mixed.  I call attention to the usage message:

> pkg: illegal global option -- v
> Usage:
>         pkg [options] command [cmd_options] [operands]

   Note the distinction between "options" and "cmd_options".

   Given that -v is a subcommand-specific option, it doesn't make any
   more sense to permit 'pkg -v image-update' than it would to permit
   '-R /mnt pkg image-update'.

   Dave

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to