git.cweiske.de
/
shpub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
932bcd4
)
add "slug" option
author
Christian Weiske
<cweiske@cweiske.de>
Wed, 14 Sep 2016 15:21:11 +0000
(17:21 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Wed, 14 Sep 2016 15:21:11 +0000
(17:21 +0200)
src/shpub/Command/AbstractProps.php
patch
|
blob
|
history
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']