diff options
author | Catalin Marinas <catalin.marinas@gmail.com> | 2009-10-19 17:14:50 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@gmail.com> | 2009-10-19 17:14:50 +0100 |
commit | 9ba661f6f88125c177c2bfb33c2ad373adccdc98 (patch) | |
tree | 4857224c8ead1850cfaaca4254f94616398ad632 | |
parent | 0258440fbcd089efd496f465931a64cb18a2e1ce (diff) | |
download | stgit-9ba661f6f88125c177c2bfb33c2ad373adccdc98.tar.gz |
The '--file' option for 'new' should show 'FILE' rather than 'MESSAGE'
The patch sets a metavar for this option's definition.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
-rw-r--r-- | stgit/argparse.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stgit/argparse.py b/stgit/argparse.py index db008d0..baf278b 100644 --- a/stgit/argparse.py +++ b/stgit/argparse.py @@ -161,6 +161,7 @@ def message_options(save_template): short = 'Use MESSAGE instead of invoking the editor'), opt('-f', '--file', action = 'callback', callback = file_callback, dest = 'message', type = 'string', args = [files], + metavar = 'FILE', short = 'Use FILE instead of invoking the editor', long = """ Use the contents of FILE instead of invoking the editor. (If FILE is "-", write to stdout.)""")] |