git.cweiske.de
/
shpub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add "slug" option
[shpub.git]
/
src
/
shpub
/
Command
/
AbstractProps.php
diff --git
a/src/shpub/Command/AbstractProps.php
b/src/shpub/Command/AbstractProps.php
index d1ef2189286b8064bbb692fac61d1865ada70339..08dbc97c21467756df42de795956d5cd0317e150 100644
(file)
--- a/
src/shpub/Command/AbstractProps.php
+++ b/
src/shpub/Command/AbstractProps.php
@@
-40,6
+40,17
@@
class Command_AbstractProps
'default' => null,
)
);
'default' => null,
)
);
+ $cmd->addOption(
+ 'slug',
+ array(
+ 'short_name' => '-s',
+ 'long_name' => '--slug',
+ 'description' => 'URL path',
+ 'help_name' => 'PATH',
+ 'action' => 'StoreString',
+ 'default' => null,
+ )
+ );
$cmd->addOption(
'syndication',
array(
$cmd->addOption(
'syndication',
array(
@@
-77,6
+88,11
@@
class Command_AbstractProps
'category', $cmdRes->options['categories']
);
}
'category', $cmdRes->options['categories']
);
}
+ if ($cmdRes->options['slug'] !== null) {
+ $req->req->addPostParameter(
+ 'slug', $cmdRes->options['slug']
+ );
+ }
if (count($cmdRes->options['syndication'])) {
$req->addPostParameter(
'syndication', $cmdRes->options['syndication']
if (count($cmdRes->options['syndication'])) {
$req->addPostParameter(
'syndication', $cmdRes->options['syndication']