This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
forked from thomasvs/morituri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly show default option values (which can now come from the configuration).
- Loading branch information
1 parent
bc7de37
commit 2d51c78
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,11 +208,13 @@ def addOptions(self): | |
help="output directory; will be included in file paths in result " | ||
"files " | ||
"(defaults to absolute path to current directory; set to " | ||
"empty if you want paths to be relative instead) ") | ||
"empty if you want paths to be relative instead; " | ||
"configured value: %default) ") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
benoit-pierre
Author
Owner
|
||
self.parser.add_option('-W', '--working-directory', | ||
action="store", dest="working_directory", | ||
help="working directory; morituri will change to this directory " | ||
"and files will be created relative to it when not absolute ") | ||
"and files will be created relative to it when not absolute " | ||
"(configured value: %default) ") | ||
|
||
rcommon.addTemplate(self) | ||
|
||
|
@@ -223,8 +225,8 @@ def addOptions(self): | |
|
||
self.parser.add_option('', '--profile', | ||
action="store", dest="profile", | ||
help="profile for encoding (default '%s', choices '%s')" % ( | ||
default, "', '".join(encode.PROFILES.keys())), | ||
help="profile for encoding (default '%%default', choices '%s')" % ( | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
benoit-pierre
Author
Owner
|
||
"', '".join(encode.PROFILES.keys())), | ||
default=default) | ||
self.parser.add_option('-U', '--unknown', | ||
action="store_true", dest="unknown", | ||
|
Not sure I follow - no default is set here, so what does showing %default do? Can you show me what this outputs?