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# beadm create opensolaris-2
-bash-3.2# beadm mount opensolaris-2 /mnt
-bash-3.2# pkg version
1bd9f1e17690
-bash-3.2# pkg refresh
-bash-3.2#
-bash-3.2# beadm list -a

BE            Active Active on Mountpoint Space
Name                 reboot               Used
----          ------ --------- ---------- -----
opensolaris-1 yes    yes       /          5.60G

   Datasets          Mountpoint Space Used
   --------          ---------- ----------
   opensolaris-1/opt /opt       1012.92M

   Snapshots                                      Policy Date created
   ---------                                      ------ ------------
   opensolaris-1/[EMAIL PROTECTED]:-:2008-07-02-03:20:17 static 2008-07-02 
03:20:17
   opensolaris-1/[EMAIL PROTECTED]:-:2008-07-15-01:43:22 static 2008-07-15 
01:43:22
   opensolaris-1/[EMAIL PROTECTED]                      static 2008-06-16 
07:56:38
   opensolaris-1/[EMAIL PROTECTED]                static 2008-07-15 02:17:50
   [EMAIL PROTECTED]                    static 2008-07-15 02:17:50
   [EMAIL PROTECTED]:-:2008-07-02-03:20:17     static 2008-07-02 03:20:17
   [EMAIL PROTECTED]:-:2008-07-15-01:43:22     static 2008-07-15 01:43:22
   [EMAIL PROTECTED]                          static 2008-06-16 07:56:38

BE            Active Active on Mountpoint Space
Name                 reboot               Used
----          ------ --------- ---------- -----
opensolaris-2 no     no        /mnt       351.5K

   Datasets          Mountpoint Space Used
   --------          ---------- ----------
   opensolaris-2/opt /mnt/opt   0

BE            Active Active on Mountpoint Space
Name                 reboot               Used
----          ------ --------- ---------- -----
opensolaris   no     no        -          53.43M

   Datasets          Mountpoint Space Used
   --------          ---------- ----------
   opensolaris/opt   -          105.0K
-bash-3.2#
-bash-3.2# pkg -v -R /mnt image-update
pkg: illegal global option -- v
Usage:
        pkg [options] command [cmd_options] [operands]

Basic subcommands:
        pkg install [-nvq] package...
        pkg uninstall [-nrvq] package...
        pkg list [-aHsuv] [package...]
        pkg image-update [-nvq]
        pkg refresh [--full]
        pkg version
        pkg help

Advanced subcommands:
        pkg info [-lr] [--license] [pkg_fmri_pattern ...]
        pkg search [-lr] [-s server] token
        pkg verify [-fHqv] [pkg_fmri_pattern ...]
        pkg contents [-Hmr] [-o attribute ...] [-s sort_key] [-t
action_type ... ]
            pkg_fmri_pattern [...]
        pkg image-create [-FPUz] [--full|--partial|--user] [--zone]
            [-k ssl_key] [-c ssl_cert] -a <prefix>=<url> dir

        pkg set-authority [-P] [-k ssl_key] [-c ssl_cert]
            [-O origin_url] authority
        pkg unset-authority authority ...
        pkg authority [-HP] [authname]

Options:
        -R dir

Environment:
        PKG_IMAGE
-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.

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

Reply via email to