X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/86ba6dc123dd39735e70a6e6ff50b1c39dd6717b..381a979bd441d8ffbed46807c9f5598987093a49:/src/shpub/Command/AbstractProps.php diff --git a/src/shpub/Command/AbstractProps.php b/src/shpub/Command/AbstractProps.php index b560fbe..0184c10 100644 --- a/src/shpub/Command/AbstractProps.php +++ b/src/shpub/Command/AbstractProps.php @@ -61,6 +61,16 @@ class Command_AbstractProps 'default' => null, ) ); + $cmd->addOption( + 'updated', + array( + 'long_name' => '--updated', + 'description' => 'Update date', + 'help_name' => 'DATE', + 'action' => 'StoreString', + 'default' => null, + ) + ); $cmd->addOption( 'slug', array( @@ -104,6 +114,11 @@ class Command_AbstractProps 'published', $cmdRes->options['published'] ); } + if ($cmdRes->options['updated'] !== null) { + $req->req->addPostParameter( + 'updated', $cmdRes->options['updated'] + ); + } if (count($cmdRes->options['categories'])) { $req->addPostParameter( 'category', $cmdRes->options['categories']