diff options
author | Florian Pritz <bluewind@xinu.at> | 2019-02-06 16:56:28 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2019-02-06 16:56:28 +0100 |
commit | df16f2b307c5940b03336aa27f051e2bd4601f5c (patch) | |
tree | e7cc4adafbfc3ea07c4737f14369930574e3065a | |
parent | 30270a259c35d84fcedfe7ee1a1aefad655c7fa3 (diff) |
Use constant for default stdin filename
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | fb.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -413,6 +413,7 @@ class ConfigParser: return self.config class FBClient: + DEFAULT_NAME = 'stdin' version = "@VERSION@" if version.startswith('@'): version = 'unknown-version' @@ -485,7 +486,7 @@ class FBClient: help="Upload a tar file containing all files (and directories)") upload_options.add_argument("-m", "--multipaste", default=False, action="store_true", help="create a multipaste") - upload_options.add_argument("-n", "--name", default="stdin", action="store", + upload_options.add_argument("-n", "--name", default=FBClient.DEFAULT_NAME, action="store", help="File name to use for upload when reading from stdin (default: stdin)") upload_options.add_argument("-e", "--extension", default="", action="store", help="extension for default highlighting (e.g. \"diff\")") |