diff --git a/gc3libs/utils.py b/gc3libs/utils.py index e621152c..5dc038b6 100755 --- a/gc3libs/utils.py +++ b/gc3libs/utils.py @@ -1067,7 +1067,7 @@ def prettyprint( if _exclude is None: _exclude = set() _exclude.add(id(D)) - for k, v in D.iteritems(): + for k, v in sorted(D.iteritems()): leading_spaces = indent * ' ' full_name = "%s%s" % (_key_prefix, k) if only_keys is not None: diff --git a/gc3utils/commands.py b/gc3utils/commands.py index 707af8c7..68500bea 100755 --- a/gc3utils/commands.py +++ b/gc3utils/commands.py @@ -209,7 +209,7 @@ def setup_options(self): help="Print attributes in CSV format," " e.g., for generating files that can be" " read by a spreadsheet program." - " MUST be used together with '-print'.") + " MUST be used together with '--print'.") self.add_param("--no-header", action="store_false", dest="header", default=True, help="Do *not* print table or CSV file header.")