Skip to content

Added node:list sort order #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2015
Merged

Added node:list sort order #143

merged 1 commit into from
Mar 1, 2015

Conversation

dantleech
Copy link
Member

Would fix #142

@@ -38,6 +40,7 @@ protected function configure()
$this->addOption('properties', null, InputOption::VALUE_NONE, 'List only the properties of this node');
$this->addOption('level', 'L', InputOption::VALUE_REQUIRED, 'Depth of tree to show');
$this->addOption('template', 't', InputOption::VALUE_NONE, 'Show template nodes and properties');
$this->addOption('sort', 's', InputOption::VALUE_REQUIRED, 'Sort properties, one of <comment>asc</comment>, <comment>desc</comment>, or <comment>none</comment>', 'asc');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use ...<comment>'.implode('</comment>, <comment>', self::SORT_OPTIONS).'</comment>...

@dbu
Copy link
Member

dbu commented Feb 28, 2015

seems good to me. travis is unhappy though.

@dantleech
Copy link
Member Author

Failure was because you cannot assign arrays to constants in versions of PHP <5.6

dantleech added a commit that referenced this pull request Mar 1, 2015
@dantleech dantleech merged commit 6e1d805 into master Mar 1, 2015
@dantleech dantleech deleted the node_list_order branch March 1, 2015 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] Property sorting in node list?
2 participants