openSUSE / docmanager

Manage DocBook 5 Meta Information
http://opensuse.github.io/docmanager/index.html
GNU General Public License v3.0
6 stars 6 forks source link

Support Aliases #64

Closed tomschr closed 9 years ago

tomschr commented 9 years ago

Aliases can be very useful to collect specific options and parameters into one. This is related to issue #27.

This issue is just a reminder. The complete issue has to be definied.

mschnitzer commented 9 years ago

WIP

mschnitzer commented 9 years ago
  1. aliases are located in the [alias] section of the config files.
  2. we have to parse the config file before we parse other arguments (maybe a separate argparser is needed here)
  3. then we have to check if the user want to use an alias (index 1 in sys.argv)
  4. if three is true, we must manipulate sys.argv and rewrite the arguments

@tomschr are you ok with that? Feel free to adjust some things.

tomschr commented 9 years ago

@mschnitzer Looks good to me.