SenseNet / sn-admin

Upgrade and package executor tool for sensenet.
https://sensenet.com
GNU General Public License v2.0
0 stars 2 forks source link

Improved help functionality. #4

Closed kavics closed 7 years ago

kavics commented 7 years ago

SnAdmin -help writes usage and available package names and descriptions. SnAdmin <package> -help writes package's description and a parameter list. Descriptions are optional XML nodes in the manifest. Package level description is an element in the document element, parameter's description is an attribute:

<Package>
  <Description>Package level description</Description>
  <Parameters>
    <Parameter name="@source" description="Parameter level description" />
tusmester commented 7 years ago

It would be nice if this worked too: snadmin <toolname> --help

For example: snadmin import --help

kavics commented 7 years ago

Package is resolved from the package root and tools folder too. So the is equivalent to the in the following line: snadmin <toolname> -help

tusmester commented 7 years ago

This does not work (tries to interpret --help as a target path): snadmin import --help

But this does work (with a single dash): snadmin import -help