chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0258440
)
The '--file' option for 'new' should show 'FILE' rather than 'MESSAGE'
author
Catalin Marinas
<catalin.marinas@gmail.com>
Mon, 19 Oct 2009 16:14:50 +0000
(17:14 +0100)
committer
Catalin Marinas
<catalin.marinas@gmail.com>
Mon, 19 Oct 2009 16:14:50 +0000
(17:14 +0100)
The patch sets a metavar for this option's definition.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/argparse.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/argparse.py
b/stgit/argparse.py
index db008d08aa6a47fe8f141ec5d20fc9143e3dc682..baf278bb0bf1b663a90f6369ea50c1ba22e367bc 100644
(file)
--- 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.)""")]