{"comment":{"url":"https://api.github.com/repos/benoit-pierre/morituri/comments/9976025","html_url":"https://github.com/benoit-pierre/morituri/commit/2d51c782f8f7bc00e9ade9a6a627d640b2adf2e0#commitcomment-9976025","id":9976025,"user":{"login":"benoit-pierre","id":5104286,"avatar_url":"https://avatars.githubusercontent.com/u/5104286?v=3","gravatar_id":"","url":"https://api.github.com/users/benoit-pierre","html_url":"https://github.com/benoit-pierre","followers_url":"https://api.github.com/users/benoit-pierre/followers","following_url":"https://api.github.com/users/benoit-pierre/following{/other_user}","gists_url":"https://api.github.com/users/benoit-pierre/gists{/gist_id}","starred_url":"https://api.github.com/users/benoit-pierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoit-pierre/subscriptions","organizations_url":"https://api.github.com/users/benoit-pierre/orgs","repos_url":"https://api.github.com/users/benoit-pierre/repos","events_url":"https://api.github.com/users/benoit-pierre/events{/privacy}","received_events_url":"https://api.github.com/users/benoit-pierre/received_events","type":"User","site_admin":false},"position":6,"line":212,"path":"morituri/rip/cd.py","commit_id":"2d51c782f8f7bc00e9ade9a6a627d640b2adf2e0","created_at":"2015-03-01T19:11:10Z","updated_at":"2015-03-01T19:11:10Z","body":"With no configuration:\r\n\r\n```\r\n  -O OUTPUT_DIRECTORY, --output-directory=OUTPUT_DIRECTORY\r\n                        output directory; will be included in file paths in\r\n                        result files (defaults to absolute path to current\r\n                        directory; set to empty if you want paths to be\r\n                        relative instead; configured value: none)\r\n```\r\n\r\nWith this configuration:\r\n\r\n```\r\n[rip.cd rip]\r\nunknown = True\r\noutput_directory = ~/desktop/music\r\ntrack_template = new/%%A/%%y - %%d/%%t - %%n\r\ndisc_template = %(track_template)s\r\nprofile = flac\r\n```\r\n\r\nIt shows:\r\n\r\n```\r\n  -O OUTPUT_DIRECTORY, --output-directory=OUTPUT_DIRECTORY\r\n                        output directory; will be included in file paths in\r\n                        result files (defaults to absolute path to current\r\n                        directory; set to empty if you want paths to be\r\n                        relative instead; configured value: ~/desktop/music)\r\n```\r\n\r\nThis is because the defaults are overridden by the call to `set_defaults` before the actual parsing of the arguments, since we want the priority to be: option defaults at parser creation (`add_option`) > configuration values > command line values."}}