projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
776fbfa
)
allow to pass single '-' as argument.
author
Dietmar Maurer
<dietmar@proxmox.com>
Wed, 19 Oct 2011 04:22:30 +0000
(06:22 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Wed, 19 Oct 2011 04:22:30 +0000
(06:22 +0200)
data/PVE/RESTHandler.pm
patch
|
blob
|
blame
|
history
diff --git
a/data/PVE/RESTHandler.pm
b/data/PVE/RESTHandler.pm
index 7e0352c9c4fd4a3f8408617c076df22a7ce588a9..e68db35571798028cd0770c53014be9af6af31ab 100644
(file)
--- a/
data/PVE/RESTHandler.pm
+++ b/
data/PVE/RESTHandler.pm
@@
-486,7
+486,7
@@
sub cli_handler {
if ($arg_param) {
if (ref($arg_param)) {
foreach my $p (@$arg_param) {
- $param->{$p} = shift @$args if $args->[0] && $args->[0] !~ m/^-/;
+ $param->{$p} = shift @$args if $args->[0] && $args->[0] !~ m/^-
\S
/;
}
} else {
my $pd = $info->{parameters}->{properties}->{$arg_param};