Homec4science

Don't show "OPTION SUMMARY" if only wildcard options exist in…

Authored by epriestley <git@epriestley.com> on Feb 3 2012, 01:02.

Description

Don't show "OPTION SUMMARY" if only wildcard options exist in PhutilArgumentParser

Summary:
We don't print "wildcard" arugments in this section, but the test to remove them
is after we've already printed the header.

If you have a script which takes ONLY wildcard arguments, we print the header
and then an empty details section.

Test Plan: Viewed help of a command with only wildcard arguments.

Reviewers: davidreuss, btrahan

Reviewed By: davidreuss

CC: aran, epriestley

Maniphest Tasks: T831

Differential Revision: https://secure.phabricator.com/D1554

Details

Committed
epriestley <git@epriestley.com>Feb 3 2012, 01:02
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUcd70f6537d38: Use PhutilArgumentParser in Daemon overseer/executor
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUb70b384187d4: Don't show "OPTION SUMMARY" if only wildcard options exist in… (authored by epriestley <git@epriestley.com>).Feb 3 2012, 01:02