- for action in config['keys'][mapped_key]:
- action_name = list(action)[0]
- action_args = {}
- if action[action_name] is None:
- action[action_name] = []
+ parser = argparse.ArgumentParser(description="A Music Sampler application.")
+ parser.add_argument("-c", "--config",
+ default="config.yml",
+ required=False,
+ help="Config file to load")
+ parser.add_argument("-V", "--version",
+ action="version",
+ help="Displays the current version and exits. Only use in bundled package",
+ version=show_version())
+ parser.add_argument('--',
+ dest="args",
+ help="Kivy arguments. All arguments after this are interpreted by Kivy. Pass \"-- --help\" to get Kivy's usage.")
+ args = parser.parse_args(argv)