Commit Graph

11 Commits

Author SHA1 Message Date
Dietmar Maurer
34ebb22690 remove 'name' to the list of utf8 encoded parameters.
Revert previous change. Add dns-name format instead.
2012-03-13 06:56:31 +01:00
Dietmar Maurer
05e787c503 moved format definition from pve-storage 2012-01-26 11:54:42 +01:00
Dietmar Maurer
b18d17224b support check and description property for permission
And revove old path/priv properties.
2012-01-23 11:32:34 +01:00
Dietmar Maurer
815b2abaea new helper decode_utf8_parameters()
Both CGI.pm and Getopt.pm does not decode utf8 strings, so we need
to do that manually.
2012-01-19 14:05:19 +01:00
Dietmar Maurer
0ce82909f4 make cli argument parser more flexible 2011-11-23 08:37:27 +01:00
Dietmar Maurer
63ed950ad4 only set list_param if we pass args 2011-11-08 07:36:11 +01:00
Dietmar Maurer
23dc9401bb introduce '-alist' format
This new meta-format is used for list which need to be 0 terminated.
The default '-list' format is now always [,; ] terminated.
2011-10-25 08:36:28 +02:00
Dietmar Maurer
aab47b58d4 avoid warning when list_param is undefined 2011-10-14 08:56:55 +02:00
Dietmar Maurer
1d21344cf5 improve get_options (allow argument lists)
So far it was possiple to specific lists by using option multiple times.

	vzdump --vmid 100 --vmid 101

or

	vzdump -vmid 100,101

No we can pass the vm list as arguments (not options)

	vzdump 100 101
2011-10-14 08:29:39 +02:00
Dietmar Maurer
8ba7c72bd1 allow list format in getopts 2011-10-12 12:21:09 +02:00
Dietmar Maurer
e143e9d86b imported from svn 'pve-common/trunk' 2011-08-23 07:31:48 +02:00