X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/86ba6dc123dd39735e70a6e6ff50b1c39dd6717b..a5b93d3ad9c111fac520c1e5a887d4eac43f19b0:/src/shpub/Command/AbstractProps.php diff --git a/src/shpub/Command/AbstractProps.php b/src/shpub/Command/AbstractProps.php index b560fbe..822fc77 100644 --- a/src/shpub/Command/AbstractProps.php +++ b/src/shpub/Command/AbstractProps.php @@ -33,7 +33,7 @@ class Command_AbstractProps 'files', array( 'short_name' => '-f', - 'long_name' => '--files', + 'long_name' => '--file', 'description' => 'Files or URLs to upload', 'help_name' => 'PATH', 'action' => 'StoreArray', @@ -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']