from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
                              load_options as _load_options,)


_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.json')

@_AddOptions(*_load_options(_path))
class DMenu(_TraitMenu):
    _base_command = ['dmenu']


from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
                              load_options as _load_options,)


_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.json')

@_AddOptions(*_load_options(_path))
class DMenu(_TraitMenu):
    _base_command = ['dmenu']
    _aliases = (
        ('i', 'case_insensitive'),
        ('p', 'prompt'),
        ('fn', 'font'),
    )


Add a few aliases to DMenu
Add a few aliases to DMenu

  from os import path as _path
  from dynmen.common import TraitMenu as _TraitMenu
  from dynmen.generator import (AddOptions as _AddOptions,
                                load_options as _load_options,)
  
  
  _dirname = _path.dirname(_path.abspath(__file__))
  _path = _path.join(_dirname, 'data/dmenu_opts.json')
  
  @_AddOptions(*_load_options(_path))
  class DMenu(_TraitMenu):
      _base_command = ['dmenu']
+     _aliases = (
+         ('i', 'case_insensitive'),
+         ('p', 'prompt'),
+         ('fn', 'font'),
+     )
  
  
Add a few aliases to DMenu
## Code Before:
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
                              load_options as _load_options,)


_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.json')

@_AddOptions(*_load_options(_path))
class DMenu(_TraitMenu):
    _base_command = ['dmenu']


## Instruction:
Add a few aliases to DMenu
## Code After:
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
                              load_options as _load_options,)


_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.json')

@_AddOptions(*_load_options(_path))
class DMenu(_TraitMenu):
    _base_command = ['dmenu']
    _aliases = (
        ('i', 'case_insensitive'),
        ('p', 'prompt'),
        ('fn', 'font'),
    )

