From 8b32ccd9e4a9093653ef890d89d4750c2bc9e384 Mon Sep 17 00:00:00 2001 From: "Fabien C. Y. Benureau" Date: Sat, 5 Jan 2019 21:38:42 +0900 Subject: [PATCH] make pubs --help work without pubs init --- pubs/pubs_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubs/pubs_cmd.py b/pubs/pubs_cmd.py index 740c709..033880e 100644 --- a/pubs/pubs_cmd.py +++ b/pubs/pubs_cmd.py @@ -60,7 +60,7 @@ def execute(raw_args=sys.argv): # an update happened, reload conf. conf = config.load_conf(path=conf_path) except config.ConfigurationNotFound: - if len(remaining_args) == 0 or remaining_args[0] == 'init': + if len(remaining_args) == 0 or remaining_args[0] == 'init' or remaining_args[0][0] == '-': conf = config.load_default_conf() conf.filename = conf_path else: